Isnan Function - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents