Standard library / math

math.MaxFloat64

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

Formal Syntax & Structure

go syntaxgo
const MaxFloat64             = 0x1p1023 * (1 + (1 - 0x1p-52))

Working Example

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