Example
The following example shows return values for
:
isFinite
isFinite(56)
// returns true
isFinite(Number.POSITIVE_INFINITY)
//returns false
isNaN function
isNaN(expression:Object) : Boolean
Evaluates the parameter and returns
if the value is
(not a number). This function is
true
NaN
useful for checking whether a mathematical expression evaluates successfully to a number.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- A Boolean, variable, or other expression to be evaluated.
expression:Object
Returns
- A Boolean value.
Boolean
Example
The following code illustrates return values for the
function:
isNaN()
trace( isNaN("Tree") );
// returns true
trace( isNaN(56) );
// returns false
trace( isNaN(Number.POSITIVE_INFINITY) )
// returns false
Global Functions
55