Difference between revisions of "Template:Rndnear/doc"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
m (Unprotected Template:Rndnear/doc: now a doc page)
m (sl:Predloga:Rndnear)
Line 14: Line 14:
 
*{{tl|rndfrac}}
 
*{{tl|rndfrac}}
  
<includeonly>[[Category:Mathematical function templates]]</includeonly>
+
<includeonly>[[Category:Mathematical function templates]]
 +
 
 +
[[sl:Predloga:Rndnear]]</includeonly>

Revision as of 08:12, 16 December 2012

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}} → 0.10
  • {{rndnear|12.65|0.25}} → 12.75
  • {{rndnear|-9.123|1}} → −9
  • {{rndnear|-912|5}} → −910
  • {{rndnear|39123|10}} → 39,120

See also