Template:Round

From Guild Wars 2 Wiki
Jump to navigationJump to search

This template rounds numbers.

Usage[edit]

{{Round|<number>|round=<number of places>}}

Parameters[edit]

1 (unnamed parameter)
The number to modify.
round
Optional. The number of decimal places to round to, defaults to 3.

Examples[edit]

Number Rounded to 3 places
{{Round|1000|round=3}} 1000
{{Round|100|round=3}} 100
{{Round|10|round=3}} 10
{{Round|1|round=3}} 1
{{Round|0|round=3}} 0
{{Round|0.1|round=3}} 0.1
{{Round|0.01|round=3}} 0.01
{{Round|0.001|round=3}} 0.001
{{Round|0.0001|round=3}} ~0
{{Round|0.00001|round=3}} ~0
{{Round|1111|round=3}} 1111
{{Round|111|round=3}} 111
{{Round|11|round=3}} 11
{{Round|1|round=3}} 1
{{Round|0.111|round=3}} 0.111
{{Round|0.0111|round=3}} 0.011
{{Round|0.00111|round=3}} 0.001
{{Round|0.0001111|round=3}} ~0
{{Round|0.000011111|round=3}} ~0
{{Round|5555|round=3}} 5555
{{Round|555|round=3}} 555
{{Round|55|round=3}} 55
{{Round|5|round=3}} 5
{{Round|0.555|round=3}} 0.555
{{Round|0.0555|round=3}} 0.056
{{Round|0.00555|round=3}} 0.006
{{Round|0.0005555|round=3}} 0.001
{{Round|0.000055555|round=3}} ~0
{{Round|5555.5555|round=3}} 5555.556
{{Round|555.5555|round=3}} 555.556
{{Round|55.5555|round=3}} 55.556
{{Round|5.5555|round=3}} 5.556