Jump to content

Template:Round

From Ziyosfera
Documentation icon Andoza hujjati[koʻrib chiqish] [tahrirlash] [tarix] [yangilash]
  • {{Andoza:Rnd}}

Usage

This template rounds parameter 1 by parameter 2 decimal places (goes the other way for negative rounding) and includes trailing zeros.

  • {{Round|54.376|2}}
  • {{Round|54.376|-1}}
  • {{Round|68.4273E12|-10}}

TemplateData

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
number1

The number to be rounded

Numberrequired
decimal places2

The number of decimal places, if negative the number is rounded so the last (parameter 2) digits are zero

Numberrequired