This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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



Double-precision, floating-point number to test


Logical 1 (true) if value is finite, and logical 0 (false) otherwise.


Call mxIsFinite to determine whether value is finite. A number is finite if it is greater than -Inf and less than Inf.


See these examples in matlabroot/extern/examples/mx:

See Also

mxIsInf, mxIsNan

Introduced before R2006a