MATLAB Application Program Interface Reference Help Desk

mexIsInf

Purpose

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; otherwise, returns false.

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



[ Previous | Help Desk | Next ]