De-I > isNaN

isNaN

Syntax

isNaN(expression);

Arguments

expression The Boolean, variable, or other expression to be evaluated.

Description

Top-level function; evaluates the argument and returns true if the value is not a number (NaN), indicating the presence of mathematical errors.

Player

Flash 5 or later.

Example

The following illustrates the return value for isNan:

isNan("Tree") returns true

isNan(56) returns false

isNaN(Number.POSITIVE_INFINITY) returns false