Шаблон:Rounddown/doc

Материал из Викимультии — энциклопедии мультипликации
Это текущая версия страницы, сохранённая Alexandr Efremov (обсуждение | вклад) в 13:10, 2 октября 2016. Вы просматриваете постоянную ссылку на эту версию.
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигации Перейти к поиску

Данный шаблон округляет число вниз до ограниченного количества десятичных знаков после запятой.

Использование[править код]

  • {{Rounddown/doc|value}}
  • {{Rounddown/doc|value|decimals}}
  • Both parameters can be any valid numeric expression.
  • The decimals parameter defaults to 0 and is rounded to the nearest integer.
  • decimals can be negative to round down to a multiple of a power of ten.
  • If decimals is not between -20 and 20, the value is returned without rounding.

Примеры[править код]

  • {{Rounddown/doc|3.14159|3}} =

Данный шаблон округляет число вниз до ограниченного количества десятичных знаков после запятой.

Использование[править код]

  • {{Rounddown/doc|value}}
  • {{Rounddown/doc|value|decimals}}
  • Both parameters can be any valid numeric expression.
  • The decimals parameter defaults to 0 and is rounded to the nearest integer.
  • decimals can be negative to round down to a multiple of a power of ten.
  • If decimals is not between -20 and 20, the value is returned without rounding.

Примеры[править код]

Note:
  • {{Floor|value}} is equivalent to {{Rounddown/doc|value}}.
  • {{Rounddown/doc|0.123|3}} =

Данный шаблон округляет число вниз до ограниченного количества десятичных знаков после запятой.

Использование[править код]

  • {{Rounddown/doc|value}}
  • {{Rounddown/doc|value|decimals}}
  • Both parameters can be any valid numeric expression.
  • The decimals parameter defaults to 0 and is rounded to the nearest integer.
  • decimals can be negative to round down to a multiple of a power of ten.
  • If decimals is not between -20 and 20, the value is returned without rounding.

Примеры[править код]

Note:
  • {{Floor|value}} is equivalent to {{Rounddown/doc|value}}.
(should be 0.123, not 0)
  • {{Rounddown/doc|0.00032|3}} =

Данный шаблон округляет число вниз до ограниченного количества десятичных знаков после запятой.

Использование[править код]

  • {{Rounddown/doc|value}}
  • {{Rounddown/doc|value|decimals}}
  • Both parameters can be any valid numeric expression.
  • The decimals parameter defaults to 0 and is rounded to the nearest integer.
  • decimals can be negative to round down to a multiple of a power of ten.
  • If decimals is not between -20 and 20, the value is returned without rounding.

Примеры[править код]

Note:
  • {{Floor|value}} is equivalent to {{Rounddown/doc|value}}.
(should be 0, not "-0")
  • {{Rounddown/doc|-0.123|3}} =

Данный шаблон округляет число вниз до ограниченного количества десятичных знаков после запятой.

Использование[править код]

  • {{Rounddown/doc|value}}
  • {{Rounddown/doc|value|decimals}}
  • Both parameters can be any valid numeric expression.
  • The decimals parameter defaults to 0 and is rounded to the nearest integer.
  • decimals can be negative to round down to a multiple of a power of ten.
  • If decimals is not between -20 and 20, the value is returned without rounding.

Примеры[править код]

Note:
  • {{Floor|value}} is equivalent to {{Rounddown/doc|value}}.
(should be -0.123, not 0)
  • {{Rounddown/doc|-3.14159|3}} =

Данный шаблон округляет число вниз до ограниченного количества десятичных знаков после запятой.

Использование[править код]

  • {{Rounddown/doc|value}}
  • {{Rounddown/doc|value|decimals}}
  • Both parameters can be any valid numeric expression.
  • The decimals parameter defaults to 0 and is rounded to the nearest integer.
  • decimals can be negative to round down to a multiple of a power of ten.
  • If decimals is not between -20 and 20, the value is returned without rounding.

Примеры[править код]

Note:
  • {{Floor|value}} is equivalent to {{Rounddown/doc|value}}.


  • {{Rounddown/doc|0.31415|0}} =

Данный шаблон округляет число вниз до ограниченного количества десятичных знаков после запятой.

Использование[править код]

  • {{Rounddown/doc|value}}
  • {{Rounddown/doc|value|decimals}}
  • Both parameters can be any valid numeric expression.
  • The decimals parameter defaults to 0 and is rounded to the nearest integer.
  • decimals can be negative to round down to a multiple of a power of ten.
  • If decimals is not between -20 and 20, the value is returned without rounding.

Примеры[править код]

Note:
  • {{Floor|value}} is equivalent to {{Rounddown/doc|value}}.
(should be 0, not "-0")
  • {{Rounddown/doc|0|0}} =

Данный шаблон округляет число вниз до ограниченного количества десятичных знаков после запятой.

Использование[править код]

  • {{Rounddown/doc|value}}
  • {{Rounddown/doc|value|decimals}}
  • Both parameters can be any valid numeric expression.
  • The decimals parameter defaults to 0 and is rounded to the nearest integer.
  • decimals can be negative to round down to a multiple of a power of ten.
  • If decimals is not between -20 and 20, the value is returned without rounding.

Примеры[править код]

Note:
  • {{Floor|value}} is equivalent to {{Rounddown/doc|value}}.
(should be 0, not "-1")
  • {{Rounddown/doc|-0.31415|0}} =

Данный шаблон округляет число вниз до ограниченного количества десятичных знаков после запятой.

Использование[править код]

  • {{Rounddown/doc|value}}
  • {{Rounddown/doc|value|decimals}}
  • Both parameters can be any valid numeric expression.
  • The decimals parameter defaults to 0 and is rounded to the nearest integer.
  • decimals can be negative to round down to a multiple of a power of ten.
  • If decimals is not between -20 and 20, the value is returned without rounding.

Примеры[править код]

Note:
  • {{Floor|value}} is equivalent to {{Rounddown/doc|value}}.


  • {{Rounddown/doc|314159|-3}} =

Данный шаблон округляет число вниз до ограниченного количества десятичных знаков после запятой.

Использование[править код]

  • {{Rounddown/doc|value}}
  • {{Rounddown/doc|value|decimals}}
  • Both parameters can be any valid numeric expression.
  • The decimals parameter defaults to 0 and is rounded to the nearest integer.
  • decimals can be negative to round down to a multiple of a power of ten.
  • If decimals is not between -20 and 20, the value is returned without rounding.

Примеры[править код]

Note:
  • {{Floor|value}} is equivalent to {{Rounddown/doc|value}}.
  • {{Rounddown/doc|314.15|-3}} =

Данный шаблон округляет число вниз до ограниченного количества десятичных знаков после запятой.

Использование[править код]

  • {{Rounddown/doc|value}}
  • {{Rounddown/doc|value|decimals}}
  • Both parameters can be any valid numeric expression.
  • The decimals parameter defaults to 0 and is rounded to the nearest integer.
  • decimals can be negative to round down to a multiple of a power of ten.
  • If decimals is not between -20 and 20, the value is returned without rounding.

Примеры[править код]

Note:
  • {{Floor|value}} is equivalent to {{Rounddown/doc|value}}.
(should be 0, not "-0")
  • {{Rounddown/doc|-314159|-3}} =

Данный шаблон округляет число вниз до ограниченного количества десятичных знаков после запятой.

Использование[править код]

  • {{Rounddown/doc|value}}
  • {{Rounddown/doc|value|decimals}}
  • Both parameters can be any valid numeric expression.
  • The decimals parameter defaults to 0 and is rounded to the nearest integer.
  • decimals can be negative to round down to a multiple of a power of ten.
  • If decimals is not between -20 and 20, the value is returned without rounding.

Примеры[править код]

Note:
  • {{Floor|value}} is equivalent to {{Rounddown/doc|value}}.


Note:
  • {{Floor|value}} is equivalent to {{Rounddown/doc|value}}.