This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]