G-L > isFinite |
![]() ![]() ![]() |
isFinite
Availability
Flash Player 5.
Usage
isFinite(
expression
)
Parameters
expression
A Boolean, variable, or other expression to be evaluated.
Returns
Nothing.
Description
Top-level function; evaluates the expression
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.
Example
The following are examples of return values for isFinite
:
isFinite(56)
// returnstrue
isFinite(Number.POSITIVE_INFINITY)
//
returnsfalse
![]() ![]() ![]() |