Difference between revisions of "Template:Round"

From Isleward Wiki
Jump to navigation Jump to search
(trailing zeros)
 
Line 24: Line 24:
 
== Examples ==
 
== Examples ==
 
* <code><nowiki>{{round|1.2345|2}}</nowiki></code> is {{round|1.2345|2}}
 
* <code><nowiki>{{round|1.2345|2}}</nowiki></code> is {{round|1.2345|2}}
*{{#expr:1.2345round2}}
 
*{{Round/trailing|1.2345|2}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 00:51, 31 May 2022

Description[edit]

Rounds parameter 1 to parameter 2 decimal places.

Usage[edit]

{{round|1.2345|2}}

Examples[edit]

  • {{round|1.2345|2}} is 1.23