De-I > isFinite
isFiniteSyntax
isFinite(
expression
);
Arguments
expression
The Boolean, variable, or other expression to be evaluated.
Description
Top-level function; evaluates the argument and returns true
if it is a finite number, and 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.
Player
Flash 5 or later.
Example
The following are examples of return values for isFinite
:
isFinite(56)
returns true
isFinite(Number.POSITIVE_INFINITY)
returns false
isNaN(Number.POSITIVE_INFINITY)
returns false