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: Re: Converting a float to an integer in a calculation record.
From: [email protected] (Tim Mooney)
To: [email protected], [email protected]
Date: Mon, 13 May 1996 12:58:46 -0500
re...

> The calc record already supports NINT(), but NINT does not appear in
> the calc record's list of algebraic operators in the Record Reference
> Manual. Thanks for pointing out this documentation problem.
> 
> >... I need to convert the result of one of my calculations to the nearest
> > integer.
> > ... Will a future version
> > of the "calculation" record support the "INT" and "NINT" functions? 

Also, the CEIL and FLOOR functions (which do appear in at least the latest
documentation) convert floats to integer-valued floats.

There a number of minor changes that haven't made it into the docs yet:

-	unary minus
NINT	nearest integer
LN	natural log (synonym for LOGE)
SQRT	square root (synonym for SQR)
PI	3.1415926...
D2R	conversion from degrees to radians (note trig functions take
	argument in radians)  degrees = radians * D2R
R2D	1/D2R
SQRT	square root (synonym for SQR)

Tim Mooney


Navigate by Date:
Prev: Converting a float to an integer in a calculation record. Janet B. Anderson
Next: Is var_ptr in 1.8 same as pVar in 1.9 SNL ? Johnny Tang
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: Converting a float to an integer in a calculation record. Janet B. Anderson
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 
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 ·