Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  <19951996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  <19951996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: Internal type conversion in EPICS
From: Andy Foster <ajf@ast.cam.ac.uk>
To: Epics Questions <tech-talk@aps.anl.gov>
Date: Wed, 19 Jul 1995 17:22:27 +0100 (BST)
Marty,

I'm pleased that you will change the format in the
Double_To_String routine. May I suggest a further 
refinement. Make the "sprintf":

sprintf( pstr_value, "%*.*e", prec+7, prec, flt_value );

where "prec" will be the desired precision from the
record. The field width is always 7 more than "prec".

Andy

==========================================================================
Andy Foster
Royal Greenwich Observatory		Tel:    44 (0)1223 374899 (direct)
Madingley Road				E-mail: ajf@ast.cam.ac.uk
Cambridge
CB3 0HA
UK


Navigate by Date:
Prev: Re: AO rec flaw Jeff Hill
Next: capfast onpage / same page connector Kevin Tsubota
Index: 1994  <19951996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: Re: Internal type conversion in Epics Marty Kraimer
Next: [no subject] Andy Foster
Index: 1994  <19951996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
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 ·