Template:Sigfig/rnd

From Self-sufficiency
Jump to: navigation, search

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