External Interfaces Reference Previous page   Next Page
mxIsNaN

Determine if value is NaN (Not-a-Number)

Fortran Syntax

Arguments

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

Returns

Logical 1 (true) if value is NaN (Not-a-Number), and logical 0 (false) otherwise.

Description

Call mxIsNaN to determine whether or not value is NaN. NaN is the IEEE arithmetic representation for Not-a-Number. A NaN is obtained as a result of mathematically undefined operations such as:

The system understands a family of bit patterns as representing NaN. In other words, NaN is not a single value, rather it is a family of numbers that MATLAB (and other IEEE-compliant applications) uses to represent an error condition or missing data.

See Also

mxIsFinite, mxIsInf


Previous page  mxIsLogical mxIsNumeric Next page

© 1994-2005 The MathWorks, Inc.