<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ncm.therandommelon.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ARound%2Fdoc</id>
	<title>Template:Round/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://ncm.therandommelon.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ARound%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://ncm.therandommelon.com/index.php?title=Template:Round/doc&amp;action=history"/>
	<updated>2026-04-17T13:33:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>http://ncm.therandommelon.com/index.php?title=Template:Round/doc&amp;diff=1124&amp;oldid=prev</id>
		<title>TheRandomMelon: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://ncm.therandommelon.com/index.php?title=Template:Round/doc&amp;diff=1124&amp;oldid=prev"/>
		<updated>2025-05-07T17:04:36Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:04, 7 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wikidb:diff:1.41:old-1123:rev-1124 --&gt;
&lt;/table&gt;</summary>
		<author><name>TheRandomMelon</name></author>
	</entry>
	<entry>
		<id>http://ncm.therandommelon.com/index.php?title=Template:Round/doc&amp;diff=1123&amp;oldid=prev</id>
		<title>Wikipedia&gt;Eyesnore: /* TemplateData */</title>
		<link rel="alternate" type="text/html" href="http://ncm.therandommelon.com/index.php?title=Template:Round/doc&amp;diff=1123&amp;oldid=prev"/>
		<updated>2024-07-11T14:54:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;TemplateData&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}{{template shortcut|rnd}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE. --&amp;gt;&lt;br /&gt;
{{high-use|263614}}&lt;br /&gt;
{{lua|Module:Math}}&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
This template rounds parameter 1 by parameter 2 decimal places (goes the other way for negative rounding) and includes trailing zeros.&lt;br /&gt;
* {{tlc|{{BASEPAGENAME}}|54.376|2|_show_result=yes}}&lt;br /&gt;
* {{tlc|{{BASEPAGENAME}}|54.376|-1|_show_result=yes}}&lt;br /&gt;
* {{tlc|{{BASEPAGENAME}}|68.4273E12|-10|_show_result=yes}}&lt;br /&gt;
For example, rounding by 1 gives 1 decimal digit, rounding by&amp;amp;nbsp;0 gives integers, or rounding by&amp;amp;nbsp;-2 gives the amount in hundreds. [[Scientific notation]] is displayed for numbers greater than or equal to 1{{e|9}}, or less than 1{{e|−4}}.&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|2.0004|3|_show_result=yes}}&lt;br /&gt;
** {{Pf|expr:2.0004 round 3}} → {{#expr:2.0004 round 3}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|0.000020004|7|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|0|8|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|154268|-3|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|154568|-3|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|1200004|-1|_show_result=yes}}&lt;br /&gt;
**whereas {{pf|expr:1200004round-1}} → {{#expr:1200004round-1}}, even though  {{pf|expr:1300004round-1}} → {{#expr:1300004round-1}} (see [[m:Help:Format produced by expr]]) &lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|1300004|-1|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|4.1e6|9|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|4.1e6|10|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|1542689271|-7|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|1542689271|2|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|7e9|-9|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|-123|1|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|-1200007|-2|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|-1234567899|-7|_show_result=yes}}&lt;br /&gt;
As with #expr, the total number of significant digits is not more than 14:&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|1234567890.123456789|10|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|123456789.0123456789|10|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|.0001234567890123456789|20|_show_result=yes}}&lt;br /&gt;
&lt;br /&gt;
;The second parameter, precision, should be an integer. Non-integer may give unexpected result.&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|1.234567|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|1.234567|2|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|1.234567|2.3|_show_result=yes}}&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|1.234567|2.7|_show_result=yes}}&lt;br /&gt;
&lt;br /&gt;
;Non-numeric input will result in an error message.&lt;br /&gt;
*{{tlc|{{BASEPAGENAME}}|invalid|_show_result=yes}}&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
{{TemplateDataHeader}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Rounds (parameter 1) by (parameter 2) decimal places, and formats. Scientific notation is used for numbers greater than 1×10^9, or less than 1×10^−4.&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The number to be rounded&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;decimal places&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The number of decimal places, if negative the number is rounded so the last (parameter 2) digits are zero&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Maintenance categories==&lt;br /&gt;
*{{clc|Pages with bad rounding precision}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*{{tl|Rounded calculation}}&lt;br /&gt;
*{{tl|Significant figures}}&lt;br /&gt;
*{{tl|Roundup}}&lt;br /&gt;
*{{tl|Rounddown}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{basepage subpage|&amp;lt;!--&lt;br /&gt;
++++ PLEASE ADD CATEGORIES BELOW THIS LINE, THANK YOU. --&amp;gt;&lt;br /&gt;
[[Category:Mathematical function templates]]&lt;br /&gt;
[[Category:Templates that add a tracking category]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Eyesnore</name></author>
	</entry>
</feed>