On 2/10/08, Jim Razmus <[EMAIL PROTECTED]> 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? > > Thanks, > Jim > >
Not OpenBSD related, but I was curious myself. Try reading http://en.wikipedia.org/wiki/NaN Or read isnan(3) if you just want to test is a number is NaN. (NaN != NaN) Floor