Jump to content

ထႅမ်းပလဵတ်ႉ:Rnd/-/doc

လုၵ်ႉတီႈ ဝီႇၶီႇပပ်ႉ မႃး

This subtemplate of {{Rnd}} adds trailing zeros. It takes two parameters.

  1. the number to be displayed
  2. the number of significant figures to be displayed after the decimal point
  • {{rnd/-|2|3}} → 2.000
  • {{rnd/-|1E+5|3}} → 100000.000

It's used by {{Rnd}}.

  • "{{#expr:2.0004 round 3}}" gives "2"
  • "{{rnd|2.0004|3}}" gives "2.000"