EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Not-a-number (nan) issues
From: Marty Kraimer <[email protected]>
To: Kay-Uwe Kasemir <[email protected]>
Cc: EPICS Tech Talk <[email protected]>
Date: Fri, 08 Oct 2004 06:10:23 -0500


Kay-Uwe Kasemir wrote:

Greetings!


How do you catch NaN? Different from most C/C++ compilers and standard C/C++ libraries, the one we use for vxWorks/Tornado 2.0.2 does not define "isnan()". Shen Peng suggested to use something like this: #define isnan(x) ((x)!=(x)) Who knows if this works in all cases?


In 3.14 <base>/src/libCom/osi/os/*/epicsMath.h provides an implementation of isnan.

The following implementations are provided:

VMS/epicsMath.h    alpha/epicsMath.h  solaris/epicsMath.h
WIN32/epicsMath.h  posix/epicsMath.h  vxWorks/epicsMath.h

A test exists in libCom/test/epicsMathTest

This is documented in the 3.14 Application Developer's Guide.
Look in the index for epicsMath

Marty Kraimer


References:
Not-a-number (nan) issues Kay-Uwe Kasemir

Navigate by Date:
Prev: Re: Not-a-number (nan) issues Andrew Johnson
Next: Re: Not-a-number (nan) issues Kay-Uwe Kasemir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Not-a-number (nan) issues Andrew Johnson
Next: double defenition in Epics Liyu, Andrei
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·