Number.IsNaN
Indicates if the value is NaN (Not a number).
Syntax
Number.IsNaN(
number as number
) as logical
Remarks
Indicates if the value is NaN (Not a number). Returns true
if number
is equivalent to Number.IsNaN
, false
otherwise.
Examples
Example #1
Check if 0 divided by 0 is NaN.
Number.IsNaN(0/0)
Result:
true
Example #2
Check if 1 divided by 0 is NaN.
Number.IsNaN(1/0)
Result:
false
Category
Number.Information