Template:Round: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
en>Patrick
(includes trailing zeros except in the range where E notation is used.)
en>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

This 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: