Navigation :
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:
Both overloads are evaluated at runtime, not in const
expressions. i64 has no NaN value and no overload of this function.