Isfinite Function; Isnan Function - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

isFinite function

isFinite(expression:Object) : Boolean
Evaluates
expression
negative infinity. The presence of infinity or negative infinity indicates a mathematical error
condition such as division by 0.
Availability: ActionScript 1.0; Flash Player 5
Parameters
expression:Object
Returns
- A Boolean value.
Boolean
Example
The following example shows return values for
isFinite(56)
// returns true
isFinite(Number.POSITIVE_INFINITY)
//returns false

isNaN function

isNaN(expression:Object) : Boolean
Evaluates the parameter and returns
useful for checking whether a mathematical expression evaluates successfully to a number.
Availability: ActionScript 1.0; Flash Player 5
Parameters
expression:Object
Returns
- A Boolean value.
Boolean
and returns
if it is a finite number or
true
- A Boolean value, variable, or other expression to be evaluated.
if the value is
true
- A Boolean, variable, or other expression to be evaluated.
false
:
isFinite
(not a number). This function is
NaN
if it is infinity or
Global Functions
65

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF