Template:Rndnear

Revision as of 02:11, 8 February 2020 by Zacharycook505-104668625857976836193 (Talk | contribs) (Created page with "<includeonly>{{isnumeric|1={{formatnum: {{#ifexpr:(({{{1|0}}}/{{{2|1}}})round0)*({{{2|1}}})>=0.0001 |{{#ifexpr:(({{{1}}}/{{{2}}})round0)*({{{2}}})<1E9 |{{#ifex...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Revision as of 02:11, 8 February 2020 by Zacharycook505-104668625857976836193 (Talk | contribs) (Created page with "<includeonly>{{isnumeric|1={{formatnum: {{#ifexpr:(({{{1|0}}}/{{{2|1}}})round0)*({{{2|1}}})>=0.0001 |{{#ifexpr:(({{{1}}}/{{{2}}})round0)*({{{2}}})<1E9 |{{#ifex...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
[view] [edit] [history] [purge] Documentation icon Template documentation

This template rounds to a multiple. It takes two parameters.

  1. the number to be rounded (any real number)
  2. the multiple to be rounded to
  • {{rndnear|0.1234|0.05}}
  • {{rndnear|12.65|0.25}}
  • {{rndnear|-9.123|1}} → −9
  • {{rndnear|-912|5}} → −910
  • {{rndnear|39123|10}} → 39,120

See also

The above documentation is transcluded from Template:Rndnear/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.

Do you want to try some new features? By joining the beta, you will get access to experimental features, at the risk of encountering bugs and issues.

Okay No thanks