Difference between revisions 4062236 and 4062263 on simplewiki{{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 negatives) and includes trailing zeros. Scientific notation is used for numbers greater than or equal to 1{{e|9}}, or less than 1{{e|−4}}. Compare: *{{<code>rnd|2.0004|3</code>}} gives {{rnd|2.0004|3}} **whereas {{<code>#expr:2.0004 round 3</code>}} gives {{#expr:2.0004 round 3}} (contracted; show full) ==Internal details== The template uses three subtemplates: *{{tl|rnd/-}} — for trailing zeros *{{tl|rnd/e+}} — for scientific notation for numbers greater than or equal to 10<sup>9</sup> or less than or equal to −10<sup>9</sup> *{{tl|rnd/e−}} — for scientific notation for numbers greater than −10<sup>−4</sup> and less than 10<sup>−4</sup> but not equal to zero == See also== *{{tl|rndfrac}} *{{tl|rndnear}} *{{tl|rndgapsRelated pages== *{{tl|rndnear}} <includeonly><!-- ++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. --> {{DEFAULTSORT:{{PAGENAME}}}} [[Category:Mathematical function templates]] [[ar:Template:Rnd]] [[bn:টেমপ্লেট:Rnd/doc]] [[en:Template:Rnd]] [[id:Templat:Rnd]] [[os:Шаблон:Rnd]] [[ja:Template:Rnd]] [[tpi:Template:Rnd]] [[pt:Predefinição:Rnd]] [[sl:Predloga:Rnd]] [[sr:Шаблон:Rnd]] [[zh:Template:Rnd]] </includeonly> All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://simple.wikipedia.org/w/index.php?diff=prev&oldid=4062263.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|