MATLAB Application Program Interface Reference | Help Desk |
mexIsNaN
Determine whether or not a value is Not-a-Number (NaN
)
integer*4 function mexIsNaN(value) real*8 valuevalue
The double-precision, floating-point number you are testing.
true
if value is Not-a-Number; otherwise, returns false
.
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.0
inf - inf
mexIsFinite
, mexIsInf
, mexGetInf