Template:Rnd/-/doc
Appearance
< Template:Rnd | -
This is a documentation subpage for Template:Rnd/- It contains usage information, categories and other content that is not part of the original template page. |
This subtemplate of {{rnd}} adds trailing zeros. It takes two parameters.
- the number to be displayed
- the number of significant figures to be displayed after the decimal point
- {{rnd/-|2|3}} → 2.000
- {{rnd/-|1E+5|3}} → 100000.000
It's used by {{rnd}}.
- "{{#expr:2.0004 round 3}}" gives "2"
- "{{rnd|2.0004|3}}" gives "2.000"