mxIsFinite (C and Fortran) - Determine whether input is finite

C Syntax

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

Fortran Syntax

integer*4 mxIsFinite(value)
real*8 value

Arguments

value

The double-precision, floating-point number that you are testing

Returns

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

Description

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

C Examples

See mxisfinite.c in the mx subdirectory of the examples directory.

See Also

mxIsInf, mxIsNan

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS