Jim Razmus wrote:
I'm trying to compile a program that uses NAN.  It includes math.h which
I'm told C99 says should define it.  I've grepped the entire source tree
and read up on man 3 math and man 3 isinf.  Still no joy.

Trying to compile the program yields "error: `NAN' undeclared (first use
in this function)".

Can anyone point me in the right direction?

you can use the isnan(3) function to test for NaN.  Does that not work
in your program?

Reply via email to