Difference between revisions of "Template:Rnd/-"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
(copy {{subst:sigfig/nil}}) |
Aeverinezinn (talk | contribs) m (9 revisions from wikipedia:Template:Rnd/-) |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{{1}}}<!-- | + | <includeonly>{{#expr:{{{1}}}}}<!-- |
-->{{#ifexpr: {{{2}}}>0 and {{{1}}}={{{1}}}round0 |.0}}<!-- | -->{{#ifexpr: {{{2}}}>0 and {{{1}}}={{{1}}}round0 |.0}}<!-- | ||
-->{{#ifexpr: {{{2}}}>1 and {{{1}}}={{{1}}}round1 |0}}<!-- | -->{{#ifexpr: {{{2}}}>1 and {{{1}}}={{{1}}}round1 |0}}<!-- | ||
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> | + | --></includeonly><noinclude>{{doc}}</noinclude> |
Latest revision as of 08:42, 15 March 2016
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. |