--- title: math.NaN() function description: The math.NaN() function returns an IEEE 754 “not-a-number” value. menu: v2_0_ref: name: math.NaN parent: Math weight: 301 --- The `math.NaN()` function returns an IEEE 754 “not-a-number” value. ```js import "math" math.NaN() // Returns NaN ```