<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.wrestlewiki.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ARnd%2Fdoc</id>
	<title>Template:Rnd/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.wrestlewiki.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ARnd%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.wrestlewiki.com/w/index.php?title=Template:Rnd/doc&amp;action=history"/>
	<updated>2026-07-18T17:42:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://www.wrestlewiki.com/w/index.php?title=Template:Rnd/doc&amp;diff=1078&amp;oldid=prev</id>
		<title>Zweig: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://www.wrestlewiki.com/w/index.php?title=Template:Rnd/doc&amp;diff=1078&amp;oldid=prev"/>
		<updated>2012-01-11T06:01:32Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --&amp;gt;&lt;br /&gt;
==Usage==&lt;br /&gt;
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}}.&lt;br /&gt;
&lt;br /&gt;
Compare:&lt;br /&gt;
*{{&amp;lt;code&amp;gt;rnd|2.0004|3&amp;lt;/code&amp;gt;}} gives {{rnd|2.0004|3}}&lt;br /&gt;
**whereas {{&amp;lt;code&amp;gt;#expr:2.0004 round 3&amp;lt;/code&amp;gt;}} gives {{#expr:2.0004 round 3}}&lt;br /&gt;
*{{&amp;lt;code&amp;gt;rnd|0.000020004|7&amp;lt;/code&amp;gt;}} gives {{rnd|0.000020004|7}}&lt;br /&gt;
*{{&amp;lt;code&amp;gt;rnd|0|8&amp;lt;/code&amp;gt;}} gives {{rnd|0|8}}&lt;br /&gt;
*{{&amp;lt;code&amp;gt;rnd|154268|-3&amp;lt;/code&amp;gt;}} gives {{rnd|154268|-3}}&lt;br /&gt;
*{{xpsoc|rnd|1200004|-1}}&lt;br /&gt;
**whereas {{xpsoc|#expr:1200004round-1}}, even though  {{xpsoc|#expr:1300004round-1}} (see [[m:Help:Format produced by expr]]) &lt;br /&gt;
*{{xpsoc|rnd|1300004|-1}}&lt;br /&gt;
*{{xpsoc|rnd|4.1e6|9}}&lt;br /&gt;
*{{xpsoc|rnd|4.1e6|10}}&lt;br /&gt;
*{{xpsoc|rnd|1542689271|-7}}&lt;br /&gt;
*{{xpsoc|rnd|1542689271|2}}&lt;br /&gt;
*{{xpsoc|rnd|7e9|-9}}&lt;br /&gt;
*{{xpsoc|rnd|-123|1}}&lt;br /&gt;
*{{xpsoc|rnd|-1200007|-2}}&lt;br /&gt;
*{{xpsoc|rnd|-1234567899|-7}}&lt;br /&gt;
As with #expr, the total number of significant digits is not more than 14:&lt;br /&gt;
*{{xpsoc|rnd|1234567890.123456789|10}}&lt;br /&gt;
*{{xpsoc|rnd|123456789.0123456789|10}}&lt;br /&gt;
*{{xpsoc|rnd|.0001234567890123456789|20}}&lt;br /&gt;
&lt;br /&gt;
==Internal details==&lt;br /&gt;
The template calls [[Template:Rnd/b1]] if the number, after rounding, is positive, [[Template:Rnd/b-1]] if it is negative, and [[Template:Rnd/b0]] if it is zero.&lt;br /&gt;
&lt;br /&gt;
Their first parameter is the rounded number, their second the rounding parameter, and their third the value of the condition that the rounding parameter is positive.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&amp;lt;!--&lt;br /&gt;
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. --&amp;gt;&lt;br /&gt;
{{DEFAULTSORT:{{PAGENAME}}}}&lt;br /&gt;
[[Category:Mathematical function templates]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[id:Templat:Rnd]]&lt;br /&gt;
[[os:Шаблон:Rnd]]&lt;br /&gt;
[[ja:Template:Rnd]]&lt;br /&gt;
[[tpi:Template:Rnd]]&lt;br /&gt;
[[pt:Predefinição:Rnd]]&lt;br /&gt;
[[sr:Шаблон:Rnd]]&lt;br /&gt;
[[zh:Template:Rnd]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zweig</name></author>
		
	</entry>
</feed>