def pure isinfinity(n: number): boolean
def pure isinfinity(n: f64): boolean
Returns true when n is a floating-point infinity.
Examples
table T = with
[| as Label, as Value |]
[| "finite", 2 |]
[| "infinite", 1e30 |]
T.Square = T.Value * T.Value
show table "Infinity check" with
T.Label
isinfinity(T.Square) as "IsInfinity"
This outputs the following table:
Label
IsInfinity
finite
false
infinite
true
Remarks
Both overloads are evaluated at runtime, not in const
expressions.