| External Interfaces/API Reference | ![]() |
Determine whether or not a value is NaN (Not-a-Number)
Fortran Syntax
integer*4 function mexIsNaN(value) real*8 value
Arguments
value
The double-precision, floating-point number you are testing.
Returns
true if value is NaN (Not-a-Number), and false otherwise.
Description
Call mexIsNaN to determine whether or not value is equal to NaN, the IEEE arithmetic representation for Not-a-Number. A NaN is obtained as a result of mathematically undefined operations such as:
0.0/0.0Inf-InfSee Also
mexIsFinite, mexIsInf, mexGetInf
| mexIsInf | mexPrintf | ![]() |