Jump to content

Template:Ordomag: Difference between revisions

From IdeaWazaWiki
wikademia>Sladen
Add, <strong>Note</strong>, this macro will currently underflow on zero, causing an error message to be returned instead of the value 0 (zero).
wikademia>Wikademia
m 19 revisions
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>{{Ordomag/+|{{#ifexpr:{{{1}}}<0|-}}{{{1}}}}}</includeonly><noinclude>This template calculates the (decimal) order of magnitude of numbers within the ranges 10<sup>66</sup> to 10<sup>-66</sup> and -10<sup>-66</sup> to -10<sup>66</sup>.
{{ordomag/x|{{{1}}}|{{#expr:floor(ln(abs({{{1}}}))/ln10)}}}}<noinclude>
 
{{pp-template|small=yes}}
<strong>Note</strong>, this macro will currently underflow on zero, causing an error message to be returned instead of the value 0 (zero).</noinclude>
{{documentation}}
</noinclude>

Latest revision as of 19:38, 26 April 2009

Expression error: Unexpected < operator.

[create] Template documentation