Plantilla:Rnd/-

De la Viquipèdia, l'enciclopèdia lliure
Icona de documentació de mòdul Documentació de la plantilla [ mostra ] [ modifica el codi ] [ mostra l'historial ] [ refresca ]

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 Plantilla:rnd (què hi enllaça, edita).

  • "{{#expr:2.0004 round 3}}" gives "2" [1]
  • "{{rnd|2.0004|3}}" gives "2,000" [2]
It's also used by Plantilla:rndnear (què hi enllaça, edita) and Plantilla:rndpad (què hi enllaça, edita).