This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
NAN
- From: "Davies, Greg" <Greg dot Davies at Ultra-UEMS dot com>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 4 Feb 2008 14:19:39 -0400
- 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