Standard library / math

math.MaxFloat32

Largest finite value representable by float32. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
const MaxFloat32             = 0x1p127 * (1 + (1 - 0x1p-23))

Working Example

Example Snippetgo
package main
import (  "fmt"  "math")
func main() {  fmt.Println(math.MaxFloat32 > 0)}
Go Reference