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.

Syntax

nan()

Returns

Decimal

Examples

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