EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 407

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
isNaN() 407
Example
The following are examples of return values for isFinite:
isFinite(56)
// returns true
isFinite(Number.POSITIVE_INFINITY)
// returns false
isNaN()
Availability
Flash Player 5.
Usage
isNaN(expression)
Parameters
expression
A Boolean, variable, or other expression to be evaluated.
Returns
A Boolean value.
Description
Function; evaluates the parameter and returns true if the value is not a number (NaN), indicating
the presence of mathematical errors.
Example
The following code illustrates return values for the isNaN function.
isNaN("Tree")
// returns true
isNaN(56)
// returns false
isNaN(Number.POSITIVE_INFINITY)
// returns false
See also
NaN
, Number.NaN

Table of Contents

Related product manuals