Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript language elements > Global Functions > isFinite function | |||
isFinite(expression:Object) : Boolean
Evaluates expression and returns true if it is a finite number or false if it is infinity or 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
expression:Object - A Boolean value, variable, or other expression to be evaluated.
Boolean - A Boolean value.
The following example shows return values for isFinite:
isFinite(56) // returns true isFinite(Number.POSITIVE_INFINITY) //returns false
Version 8
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00001736.html