الگو:Rnd/-/توضیحات

از ویکی‌پدیا، دانشنامهٔ آزاد
< الگو:Rnd‏ | -

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 (backlinks, edit).

  • "{{#expr:2.0004 round 3}}" می‌دهد "2" [۱]
  • "{{rnd|2.0004|3}}" می‌دهد "۲٫۰۰۰" [۲]

It's also used by الگو:rndnear (backlinks, edit) and الگو:rndpad (backlinks, edit).