Experimental Physics and Industrial Control System
I wrote a little test program to check for proper handling of NAN/INF:
System scanf/strtod printf
Darwin Y Y
Linux Y Y
Solaris Y Y
vxWorks N Y
RTEMS N Y
Windows/Cygwin N Y
Windows N Y(1)
(1) Prints a NaN as -1.#IND and infinity as 1.#INF
scanf/strtod checked with "nan", "Nan", "NaN", "NAN", "INF", "+INF", "-INF"
printf checked with 0./0., 1./0. -1./0. and sqrt(-1.0)
So:
1) on 'unix-based' machines INF or NAN in a .db file works fine.
2) for all except windows I think that things would work if we provided an
epicsStrtod routine (assuming that everything in EPICS is now using strdod).
3) The fact that windows prints NaNs and infinities differently poses a
nastier problem.
--
Eric Norum [email protected]
Advanced Photon Source Phone: (630) 252-4793
Argonne National Laboratory
- References:
- RE: Not-a-number (nan) issues Jeff Hill
- Re: Not-a-number (nan) issues Kay-Uwe Kasemir
- Navigate by Date:
- Prev:
Re: Not-a-number (nan) issues Kay-Uwe Kasemir
- Next:
double defenition in Epics Liyu, Andrei
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
<2004>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
- Navigate by Thread:
- Prev:
Re: Not-a-number (nan) issues Kay-Uwe Kasemir
- Next:
Re: Not-a-number (nan) issues Till Straumann
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
<2004>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025