SplitScript reference / f32 / NaN
f32.NaN
Constant
f32.NaN: f32
The canonical 32-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 = f32.NaN
if measurement.isNaN() {
print("measurement unavailable")
}