Artifact 158a31acfbc6d022fbfb35a4b99774c83d433cb28a8d0e471b801e9fd04e2fcb:
- Executable file
r37/lisp/csl/html/r37_0214.html
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1358) [annotate] [blame] [check-ins using] [more...]
<A NAME=PRECISION> <TITLE>PRECISION</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>PRECISION</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>declaration</B><P> <P> <P> <P> The <em>precision</em> declaration sets the number of decimal places used when <A HREF=r37_0330.html>rounded</A> is on. Default is system dependent, and normal ly about 12. <P> <H3> syntax: </H3> <P> <P> <em>precision</em>(<integer>) or <em>precision</em> <integer> <P> <P> <P> <integer> must be a positive integer. When <integer> is 0, the current precision is displayed, but not changed. There is no upper limit, but precision of greater than several hundred causes unpleasantly slow operation on numeric calculations. <P> <P> <P> <H3> examples: </H3> <P><PRE><TT> on rounded; 7/9; 0.777777777778 precision 20; 20 7/9; 0.77777777777777777778 sin(pi/4); 0.7071067811865475244 </TT></PRE><P>Trailing zeroes are dropped, so sometimes fewer than 20 decimal pl aces are printed as in the last example. Turn on the switch <A HREF=r37_0291.html>fullprec</A> if you want to print all significant digits. The <A HREF=r37_0330.html>rounded</A> mode carries calculations to two more places than given by <em>precision</em>, and rounds off. <P> <P> <P>