Template:Rnd/doc: Difference between revisions

Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
(New page: {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> ==Usage== This template rounds {{{1}}} to {{{2}}} decimal places (goes the other way for...)
 
No edit summary
 
Line 12: Line 12:
<includeonly><!--
<includeonly><!--
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
[[Category:Mathematical function templates]]


</includeonly>
</includeonly>

Latest revision as of 01:30, 7 June 2008

This is a documentation subpage for Template:Rnd (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

Usage

This template rounds {{{1}}} to {{{2}}} decimal places (goes the other way for negatives), includes trailing zeros except in the range where E notation is used.

Compare:

  • {{#expr:2.0004 round 3}} gives 2.
  • {{rnd|2.0004|3}} gives 2.000.
  • {{rnd|0.000020004|8}} gives 2.0E-5000.
  • {{rnd|0|8}} gives 0.00000000.