Represents a constant number that stands for **Not A Number**. This constant is generally used for comparison to remaining mathematical operations with invalid inputs. It is equivalent to floating point null, but NaN() is provided for more explicit usage in mathematical expressions.

**nan**()

Decimal

You can experiment with this function in the test box below.

Test Input

`nan(100)`

returns `null`

Open in Github

On This Page