Template:Round: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
en>Jimp (copying a template for nice rounding, i.e. trailing zeros & no conversion to E notation using {{subst:sigfig/rnd}}) |
en>Jimp (a few adjustments + explanation) |
||
Line 1:
<includeonly>{{#ifexpr:{{{
|{{{1}}}
|(-({{{
|{{#switch:{{#expr:{{{
| -3| -4| -5=000
| -6| -7| -8=000000
Line 23:
|-57|-58|-59=000000000000000000000000000000000000000000000000000000000
|-60|-61|-62=000000000000000000000000000000000000000000000000000000000000
}}}}|{{
|
Revision as of 16:44, 21 September 2007
This template rounds {{{1}}} to {{{2}}} decimal places (goes the other way for negatives), includes trailing zeros & avoids E notation.