EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  <19961997  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  Index 1994  1995  <19961997  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 
<== Date ==> <== Thread ==>

Subject: Converting a float to an integer in a calculation record.
From: Steven M Beard <[email protected]>
To: Epics Questions <[email protected]>
Date: Mon, 13 May 1996 14:34:53 +0100 (BST)
I have an EPICS database in which all the quantities I am dealing with are
integers. As the output of the "calculation" record is floating point, I
need to convert the result of one of my calculations to the nearest
integer. At the moment I am doing the conversion by channeling the output
through a "longout" record, but it would be tidier if I could convert a
floating point value to the nearest integer within the "calculation"
record itself. Does anyone know a way of doing this? Will a future version
of the "calculation" record support the "INT" and "NINT" functions? 

Steven

==============================================================================
Steven Beard
Royal Observatory                  Tel.   : +44 (0)131 668 8253 (direct)
Blackford Hill                              +44 (0)131 668 8100 (switchboard)
Edinburgh EH9 3HJ                  Fax.   : +44 (0)131 668 1130
UK                                 E-mail : [email protected]       (Internet) 
                                   WWW    : http://www.roe.ac.uk/smbwww/


Navigate by Date:
Prev: Trivial bug report (Re: R3.13.0.alpha3 is available) MURANAKA Masaki
Next: Re: bug in sequencer Rozelle Wright
Index: 1994  1995  <19961997  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 
Navigate by Thread:
Prev: [Fwd: CapFast floating lic] Jeff Hill
Next: Converting a float to an integer in a calculation record. Janet B. Anderson
Index: 1994  1995  <19961997  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 
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 ·