FINITE

The FINITE function returns 1 (True) if its argument is finite. If the argument is infinite or not a defined number (NaN), 0 (False) is returned. (See Special Floating-Point Values for more information on IEEE floating-point values.) The result is a byte expression of the same structure as the argument X .

Calling Sequence

Result = FINITE( X )

Arguments

X

A floating-point, double-precision, or complex scalar or array expression. Strings are first converted to floating-point. This function is meaningless for byte, integer, or longword arguments.

Example

To find out if the logarithm of 5.0 is finite, enter:

PRINT, FINITE(ALOG(5.0))

IDL prints "1" because the argument is finite.

See Also

CHECK_MATH , MACHAR , and .