Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 540 Bytes

number-isnan.md

File metadata and controls

43 lines (27 loc) · 540 Bytes
description title
Learn more about: Number.IsNaN
Number.IsNaN

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