Template:Rndnear
From Teampedia
This template rounds to a multiple. It takes two parameters.
- the number to be rounded (any real number)
- 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
- {{rnd}}
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.
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.