Template:Rnd: Difference between revisions

From MINR.ORG WIKI
w>Patrick
includes trailing zeros except in the range where E notation is used.
w>Patrick
No edit summary
Line 4: Line 4:
*{{xpd|#expr:2.0004 round 3}}
*{{xpd|#expr:2.0004 round 3}}
*{{xpd|rnd|2.0004|3}}
*{{xpd|rnd|2.0004|3}}
*{{xpd|#expr:0.000020004 round 8}}
*{{xpd|rnd|0.000020004|8}}
</noinclude>
</noinclude>

Revision as of 11:38, 31 January 2008

Template:Pp-templateThis template rounds {{{1}}} to {{{2}}} decimal places (goes the other way for negatives), includes trailing zeros except in the range where E notation is used.

Compare: