math.NaN() function

math.NaN() returns a IEEE 754 “not-a-number” value.

Function type signature
() => float

For more information, see Function type signatures.

Examples

Return a NaN value

import "math"

math.NaN()

Was this page helpful?

Thank you for your feedback!