Template:Round: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Patrick No edit summary |
meta>Patrick No edit summary |
||
Line 5: | Line 5: | ||
*{{xpd|rnd|2.0004|3}} | *{{xpd|rnd|2.0004|3}} | ||
*{{xpd|rnd|0.000020004|8}} | *{{xpd|rnd|0.000020004|8}} | ||
*{{xpd|rnd|0|8}} | |||
</noinclude> | </noinclude> |
Revision as of 00:12, 5 February 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:
"{{#expr:2.0004 round 3}}"
gives "2" [1]- Template:Xpd2
- Template:Xpd2
- Template:Xpd2