User`s guide
static bool IsNaN(double x)
Purpose Test if value is NaN (Not-a-Number) and return true if value is NaN
C++
Syntax
#include "mclcppclass. h"
bool x = mwArray::IsNaN(1. 0); // Returns false
Arguments ValuetotestforNaN
Return
Value
Result of test.
Description Call mwArray ::I sNaN to determine whether or not the value is NaN.
NaN is the IEEE arithmetic representation for Not-a-Number. NaN is
obtained as a result of mathematically undefined operations such as
•
0.0/0.0
• Inf-Inf
The system understands a family ofbitpatternsasrepresentingNaN.In
other words,
NaN is not a single value, rather it is a family of numbers
that MATLAB (and other IEEE-compliant applications) use to represent
an error condition or missing data.
C-94