SplitScript reference / f64 / NaN

f64.NaN

Constant

f64.NaN: f64

The canonical 64-bit not-a-number value.

NaN represents an undefined or unrepresentable floating-point result. It is not equal to itself; use Float.isNaN when testing a value.

Effects: pure

Runtime behavior: available everywhere; synchronous

Examples

Initialize an unavailable measurement

let measurement = f64.NaN
if measurement.isNaN() {
    print("measurement unavailable")
}