Jump to content

Template:Rnd/-

From The Austrian Economics Wiki, the global repository of classical-liberal thought
Revision as of 23:19, 6 May 2011 by John James (talk | contribs) (Created page with "<includeonly>{{#expr:{{{1}}}}}<!-- -->{{#ifexpr: {{{2}}}>0 and {{{1}}}={{{1}}}round0 |.0}}<!-- -->{{#ifexpr: {{{2}}}>1 and {{{1}}}={{{1}}}round1 |0}}<!-- -->{{#ifexpr: {{{2}}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Documentation icon Template documentation[view] [edit] [history] [purge]

Adds trailing zeros:

  • {{rnd/-|2|3}} → 2.000
  • {{rnd/-|1E+5|3}} → 100000.000

Used by Template:rnd (backlinks, edit):

  • {{#expr:2.0004 round 3}} gives 2
  • {{rnd|2.0004|3}} gives 2.000