May 2001
Intermediate to advanced
720 pages
23h 24m
English
Number.NaN Property — constant representing invalid numeric data (Not-a-Number)
Flash 5
Number.NaN
Read-only
The NaN property stores the special “invalid
number” value of the number datatype. It
is used to represent the result of an illogical mathematical
calculation (e.g., 0/0) or an attempted data
conversion that does not yield a legitimate number.
Number.NaN is normally used in its more convenient
global property form, NaN.
The value NaN is hardly ever used directly in
source code but rather serves as a way for an operation to return an
error condition. The only way you can detect NaN
is with the global function isNaN( ).
isNaN( ), NaN; Section 4.3.3 in Chapter 4
Read now
Unlock full access