Flash Lite 2.x and 3.0 ActionScript Language Reference

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.

Parameters

expression:Object - A Boolean value, variable, or other expression to be evaluated.

Returns

Boolean - A Boolean value.

Example

The following example shows return values for isFinite:

isFinite(56)
// returns true

isFinite(Number.POSITIVE_INFINITY)
//returns false