Template:Order of magnitude: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
m (29 revisions imported from wikipedia:Template:Order_of_magnitude) |
||
(28 intermediate revisions by 15 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{safesubst:<noinclude/>#ifexpr:{{{1|0}}}=0 |
|||
<includeonly>{{Ordomag/sum|{{#ifexpr:{{{1}}}<0|-}}{{{1}}}|{{{2}}}}}</includeonly><noinclude>This template calculates the (decimal) order of magnitude of numbers within the ranges 10<sup>24</sup> to 10<sup>-24</sup> and -10<sup>-24</sup> to -10<sup>24</sup>.</noinclude> |
|||
|{{safesubst:<noinclude/>#ifexpr:abs{{{1|0}}}1=1 |
|||
|0 |
|||
|{{safesubst:<noinclude/>#expr:floor((ln(abs{{{1}}}1)/ln10)+1)}} |
|||
}} |
|||
|{{safesubst:<noinclude/>#expr:floor((ln(abs({{{1|0}}}) )/ln 10)+1E((abs{{{1|0}}}>1E100 or abs{{{1|0}}}<1E-100)-14))}} |
|||
}}</includeonly><noinclude> |
|||
{{documentation}} |
|||
</noinclude> |