Main Content

mxIsFinite (C and Fortran)

Determine whether input is finite

C Syntax

#include "matrix.h" bool mxIsFinite(double value);

Fortran Syntax

#include "fintrf.h" integer*4 mxIsFinite(value) real*8 value

Arguments

value

Double-precision, floating-point number to test

Returns

Logical1(true) ifvalueis finite, and logical0(false) otherwise.

Description

CallmxIsFiniteto determine whethervalueis finite. A number is finite if it is greater than-Infand less thanInf.

Examples

See these examples inmatlabroot/extern/examples/mx:

See Also

mxIsInf,mxIsNan

Version History

Introduced before R2006a