File r37/lisp/csl/html/r37_0219.html artifact 3e6ed22472 part of check-in dc9552dc80



<A NAME=SCIENTIFIC_NOTATION>

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



<B>SCIENTIFIC\_NOTATION</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>declaration</B><P>
<P>
 
 <P>
<P>
 <P> <H3> 
syntax: </H3>
<em>scientific_notation</em>(&lt;m&gt;) or 
<em>scientific_notation</em>({&lt;m&gt;,&lt;n&gt;}) 
<P>
<P>
<P>
&lt;m&gt; and &lt;n&gt; are positive integers. 
<em>scientific_notation</em> controls the output format of floating point 
numbers. At the default settings, any number with five or less digits 
before the decimal point is printed in a fixed-point notation, e.g., 
12345.6. Numbers with more than five digits are printed in scientific 
notation, e.g., 1.234567E+5. Similarly, by default, any number with 
eleven or more zeros after the decimal point is printed in scientific 
notation. 
<P>
<P>
When <em>scientific_notation</em> is called with the numerical argument 
 m a number with more than m digits before the decimal point, 
or m or more zeros after the decimal point, is printed in scientific 
notation. When <em>scientific_notation</em> is called with a list 
{&lt;m&gt;,&lt;n&gt;}, a number with more than m digits before the 
decimal point, or n or more zeros after the decimal point is 
printed in scientific notation. 
<P>
<P>
 <P> <H3> 
examples: </H3>
<P><PRE><TT>

on rounded;


12345.6;

  12345.6



123456.5;

  1.234565e+5



0.00000000000000012;

  1.2e-16



scientific_notation 20;

  5,11



5: 123456.7;

  123456.7



0.00000000000000012;

  0.00000000000000012

</TT></PRE><P>

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