Standard library / math
math.Log2E
Base-two logarithm of e. Expected stdout: '1.442695\n'.
Formal Syntax & Structure
go syntaxgo
const Log2E = 1 / Ln2Working Example
Example Snippetgo
package main
import ( "fmt" "math")
func main() { fmt.Printf("%.6f\n", math.Log2E)}