Difference between revisions of "Template:Rnd/-"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
(+cat per Template talk:Rnd#Overhaul) |
(separate doc template) |
||
Line 13: | Line 13: | ||
-->{{#ifexpr: {{{2}}}>11 and {{{1}}}={{{1}}}round11 |0}}<!-- | -->{{#ifexpr: {{{2}}}>11 and {{{1}}}={{{1}}}round11 |0}}<!-- | ||
-->{{#ifexpr: {{{2}}}>12 and {{{1}}}={{{1}}}round12 |0}}<!-- | -->{{#ifexpr: {{{2}}}>12 and {{{1}}}={{{1}}}round12 |0}}<!-- | ||
− | --></includeonly><noinclude>{{ | + | --></includeonly><noinclude>{{doc}}</noinclude> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </noinclude> |
Revision as of 09:48, 23 November 2010
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).bn:টেমপ্লেট:Rnd/- pt:Predefinição:Rnd/- sl:Predloga:Rnd/-
The above documentation is transcluded from Template:Rnd/-/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |