"Skybuck Flying" <no****@hotmail.com> wrote in message news:<cc**********@news5.tilbu1.nb.home.nl>...
Hi,
I have one more remaining "problem" with compiling a unix source code for
windows/visual c/c++ 6.0
What does the isnan routine do ?
Documentation says it checks for NaN ? What does that mean ?
What is a good replacement for Visual C/C++ 6.0 ?
Bye,
Skybuck
In C99, the isnan() macro, defined in <math.h>, is nonzero if its
argument is a NaN (not-a-number).
Floating-point numbers can be classified into one of the following
categories: normal nonzero numbers, subnormal nonzero numbers, zero,
infinity, and not-a-numbers (bit sequences that do not represent any
number).
One way of representing the macro in C99 is:
#define isnan(_X) (fpclassify(_X)==FP_NAN)
It would be nice if M$ provided a C99-compatible <math.h> that had a
C99-compatible fpclassify() macro and FP_NAN for the above to make
sense.
Gregory Pietsch