Difference between revisions of "Template:Rnd/-/doc"
From Ava Zinn Wiki
< Template:Rnd | -
[unchecked revision] | [unchecked revision] |
m (moved Template:Rnd/c-2dec1 to Template:Rnd/-/doc) |
Aeverinezinn (talk | contribs) m (29 revisions from wikipedia:Template:Rnd/-/doc) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 7: | Line 7: | ||
*{{xpsoc|rnd/-|1E+5|3}} | *{{xpsoc|rnd/-|1E+5|3}} | ||
− | + | It's used by {{tiw|rnd}}. | |
*{{xpd|#expr:2.0004 round 3}} | *{{xpd|#expr:2.0004 round 3}} | ||
*{{xpd|rnd|2.0004|3}} | *{{xpd|rnd|2.0004|3}} | ||
+ | |||
+ | It's also used by {{tiw|rndnear}} and {{tiw|rndpad}}. | ||
+ | |||
<includeonly> | <includeonly> | ||
[[Category:Subtemplates of Template Rnd]] | [[Category:Subtemplates of Template Rnd]] | ||
+ | [[bn:টেমপ্লেট:Rnd/-]] | ||
[[pt:Predefinição:Rnd/-]] | [[pt:Predefinição:Rnd/-]] | ||
+ | [[sl:Predloga:Rnd/-]] | ||
+ | |||
</includeonly> | </includeonly> |
Latest revision as of 08:43, 15 March 2016
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 Template:rnd (backlinks edit).
It's also used by Template:rndnear (backlinks edit) and Template:rndpad (backlinks edit).