सामग्रीमा जानुहोस्

ढाँचा:Round/-/कागजात

विकिपिडिया, एक स्वतन्त्र विश्वकोशबाट

This subtemplate of {{round}} 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
  • {{round/-|2|3}} → 2.000
  • {{round/-|1E+5|3}} → 100000.000

It's used by Template:rnd (backlinks, edit).

  • "{{#expr:2.0004 round 3|||{{{4}}}}}" gives "2" [१]
  • "{{round|2.0004|3|{{{4}}}}}" gives "२�000" [२]

It's also used by Template:rndnear (backlinks, edit) and Template:rndpad (backlinks, edit).