Nevermind, my usual method of asking someone, the list in this case, made the answer jump out at me. I still can't find the NAN I was using before, but in my haste I forgot the std:: on the numeric_limits. All is well in my tiny world now.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Davies, Greg Sent: Monday, February 04, 2008 2:20 PM To: [email protected] Subject: [ECOS] NAN Hi, I'm trying to compile a program that assigns the value NAN to some floats to indicate that no real data has come out of a sensor yet. My problem is that I can't find a header that defines NAN. I used math.h when I was writing this class the first time around. I even tried using numeric_limits<float>::quiet_NaN() from <limits> but everything I try gives me an error along the lines of: NAN is not declared in this scope. Could there be something I'm missing from the eCos configuration do add a header that defines NAN? All help is greatly appreciated. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
