Difference between revisions of "Template:Rnd/-/doc"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Undid revision 204343077 by 99.165.232.162 (talk))
m (29 revisions from wikipedia:Template:Rnd/-/doc)
 
(21 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{rnd/{{#expr:2*({{{2}}}<-5)}}|{{{1}}}|{{{2}}}+3|000}}
+
{{Documentation subpage}}
 +
This subtemplate of {{tl|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
 +
 
 +
*{{xpsoc|rnd/-|2|3}}
 +
*{{xpsoc|rnd/-|1E+5|3}}
 +
 
 +
It's used by {{tiw|rnd}}.
 +
*{{xpd|#expr:2.0004 round 3}}
 +
*{{xpd|rnd|2.0004|3}}
 +
 
 +
It's also used by {{tiw|rndnear}} and {{tiw|rndpad}}.
 +
 
 +
<includeonly>
 +
[[Category:Subtemplates of Template Rnd]]
 +
[[bn:টেমপ্লেট:Rnd/-]]
 +
[[pt:Predefinição:Rnd/-]]
 +
[[sl:Predloga:Rnd/-]]
 +
 
 +
</includeonly>

Latest revision as of 08:43, 15 March 2016

This subtemplate of {{rnd}} adds trailing zeros. It takes two parameters.

  1. the number to be displayed
  2. 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).