isFinite()
Availability
Flash Player 5.
Usage
isFinite(expression:Object) : Boolean
Parameters
A Boolean value, variable, or other expression to be evaluated.
expression
Returns
A Boolean value.
Description
Function; evaluates
or negative infinity. The presence of infinity or negative infinity indicates a mathematical error
condition such as division by 0.
Example
The following example shows return values for
isFinite(56)
// returns true
isFinite(Number.POSITIVE_INFINITY)
// returns false
ActionScript Language Reference
and returns
expression
if it is a finite number or
true
:
isFinite
CHAPTER 2
if it is infinity
false
isFinite()
339
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers