Standard library / math
math.NaN()
Produces an IEEE 754 not-a-number value; use IsNaN to test it. Expected stdout: 'NaN\n'.
Formal Syntax & Structure
go syntaxgo
func NaN() float64Return Value
float64
Produces an IEEE 754 not-a-number value; use IsNaN to test it.
Working Example
Example Snippetgo
package main
import ( "fmt" "math")
func main() { fmt.Println(math.NaN())}