Number.IsNaN

Syntax

Number.IsNaN(number as number) as logical

About

Indicates if the value is NaN (Not a number). Returns true if number is equivalent to Number.IsNaN, false otherwise.

Example 1

Check if 0 divided by 0 is NaN.

Usage

Number.IsNaN(0/0)

Output

true

Example 2

Check if 1 divided by 0 is NaN.

Usage

Number.IsNaN(1/0)

Output

false