Template:Significant figures/rnd
Jump to navigation
Jump to search
Template documentation
A rounding subtemplate, it calls {{rnd}}.
Examples:
{{sigfig/rnd|123.456|7|2}}
gives 123.4560 [1]{{sigfig/rnd|123.456|6|2}}
gives 123.456 [2]{{sigfig/rnd|123.456|5|2}}
gives 123.46 [3]{{sigfig/rnd|123.456|4|2}}
gives 123.5 [4]{{sigfig/rnd|123.456|3|2}}
gives 123 [5]{{sigfig/rnd|123.456|2|2}}
gives 120 [6]{{sigfig/rnd|123.456|1|2}}
gives 100 [7]{{sigfig/rnd|123.456|0|2}}
gives 0 [8]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |