Template:Significant figures/rnd
< Template:Significant figures
Revision as of 17:30, 23 February 2018 by en>Primefac (Changed protection level for "Template:Significant figures/rnd": high-risk template with 4000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
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. |