isinf

isinf — determines if a number is infinite.

Synopsis

isinf (number)

		

Arguments

number

A floating point number.

Returns

1 if the number is positive and infinite, -1 if it is negative and infinite, otherwise nil.

Example

These examples use the constant INF, which represents an infinite number in Gamma.

Gamma> isinf(95);
nil
Gamma> isinf(INF);
1
Gamma> isinf(-INF);
-1