External Interfaces/API Reference    
mexIsInf

Determine whether or not a value is infinite

Fortran Syntax

Arguments
value
   The double-precision, floating-point number you are testing.

Returns

true if value is infinite, and false otherwise.

Description

Call mexIsInf to determine whether or not value is equal to infinity. MATLAB stores the value of infinity in a permanent variable named Inf, which represents IEEE arithmetic positive infinity. The value of Inf is built in to the system; you cannot modify it.

Operations that return infinity include:

If value equals NaN (Not-a-Number), then mexIsInf returns false. In other words, NaN is not equal to infinity.

See Also

mexIsFinite, mexIsNaN


 mexIsFinite mexIsNaN