contents   index   previous   next



global.isFinite()

syntax:

isFinite(number)

where:

number - to check if it is a finite number.

 

return:

boolean - if the parameter is or can be converted to a number, else false.

 

description:

This method returns true if the parameter, number, is or can be converted to a number. If the parameter evaluates as NaN, Number.POSITIVE_INFINITY, or Number.NEGATIVE_INFINITY, the method returns false.

 

see:

global.isNaN()

 

example:

if (isFinite(99)) Screen.writeln("A number");

 


global.isNaN()