isnan

isnan, function

def pure isnan(n: number): boolean
def pure isnan(n: f64): boolean

Returns true when n is a NaN (not-a-number) value.

Examples

table T = extend.range(2)
T.X = if T.N == 1 then 0 / 0 else 1

show table "NaN check" with
  T.N
  isnan(T.X) as "IsNaN"

This outputs the following table:

N IsNaN
1 true
2 false

Remarks

Both overloads are evaluated at runtime, not in const expressions. i64 has no NaN value and no overload of this function.

User Contributed Notes
0 notes + add a note