Template:Sigfig/rnd
From Self-sufficiency
Revision as of 10:09, 29 August 2010 by Patrick (Talk) (Examples (even if not applied directly, useful for understanding))
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 Template:Rnd/c0dec0 [8]pt:Predefinição:Sigfig/rnd