File r37/lisp/csl/html/r37_0330.html artifact b397adcdaa part of check-in e1a8550313



<A NAME=ROUNDED>

<TITLE>ROUNDED</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>



<B>ROUNDED</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>switch</B><P>
<P>
 
 <P>
<P>
When <em>rounded</em> is on, floating-point arithmetic is enabled, with 
precision initially at a system default value, which is usually 12 digits. 
The precise number can be found by the command 
<A HREF=r37_0214.html>precision</A>(0). 
 <P> <H3> 
examples: </H3>
<P><PRE><TT>
pi; 

  PI 


35/217; 

  5
  -- 
  31


on rounded; 

pi; 

  3.14159265359 


35/217; 

  0.161 


sqrt(3); 

  1.73205080756

</TT></PRE><P><P>
<P>
If more than the default number of decimal places are required, use the 

<A HREF=r37_0214.html>precision</A> command to set the required number. 
<P>
<P>
<P>


REDUCE Historical
REDUCE Sourceforge Project | Historical SVN Repository | GitHub Mirror | SourceHut Mirror | NotABug Mirror | Chisel Mirror | Chisel RSS ]