Difference between revisions 5873111 and 5873112 on simplewiki

{{Documentation subpage}}
{{lua|Module:Math}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
==Usage==
This template rounds parameter 1 by parameter 2 decimal places (goes the other way for negative rounding) and includes trailing zeros.
::: {{<code>'''rnd'''|54.376|2</code>}} &nbsp; &nbsp; gives {{rnd|54.376|2}}
::: {{<code>'''rnd'''|54.376|-1</code>}} &nbsp; gives {{rnd|54.376|-1}}
(contracted; show full)*{{tl|rndfrac}}
*{{tl|rndnear}}
*{{tl|rndgaps}}

<includeonly><!--
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
{{DEFAULTSORT:{{PAGENAME}}}}
[[Category:Mathematical function templates]]

[[Category:Lua-based templates]]

</includeonly>