Difference between revisions of "Template:Order of magnitude"

From MINR.ORG WIKI
m (29 revisions imported: Imported Category TOC from wikipedia)
 
(22 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<includeonly>{{Ordomag/sum|{{#ifexpr:{{{1}}}<0|-}}{{{1}}}}}</includeonly><noinclude>This template calculates the (decimal) order of magnitude of numbers within the ranges 10<sup>60</sup> to 10<sup>-60</sup> and -10<sup>-60</sup> to -10<sup>60</sup>.
+
<includeonly>{{{{{|safesubst:}}}#ifexpr:{{{1|0}}}=0
;Note
+
  |{{{{{|safesubst:}}}#ifexpr:abs{{{1|0}}}1=1
:There also exists {{tl|Ordomag/12}} with a reduced range of 10<sup>12</sup> to 10<sup>-12</sup> for use in cases where pre-expand size is of concern.
+
      |0
 +
      |{{{{{|safesubst:}}}#expr:floor((ln(abs{{{1}}}1)/ln10)+1)}}
 +
    }}
 +
  |{{#expr:floor((ln(abs({{{1|0}}}) )/ln 10)+1E((abs{{{1|0}}}>1E100 or abs{{{1|0}}}<1E-100)-14))}}
 +
}}</includeonly><noinclude>
 +
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 19:55, 11 August 2017

Template documentation[create]