<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3ARound</id>
	<title>TI-BASIC:Round - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3ARound"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Round&amp;action=history"/>
	<updated>2026-06-13T05:53:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Round&amp;diff=692&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Round&amp;diff=692&amp;oldid=prev"/>
		<updated>2016-02-24T18:13:50Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:TI-BASIC:Command&lt;br /&gt;
|picture=ROUND.GIF&lt;br /&gt;
|summary=Truncates a number to a specified number of decimal places.&lt;br /&gt;
|syntax=round(&amp;#039;&amp;#039;value&amp;#039;&amp;#039;[,&amp;#039;&amp;#039;#decimals&amp;#039;&amp;#039;])&lt;br /&gt;
|location=Press:&lt;br /&gt;
# MATH to select the [[TI-BASIC:Math|Math]] menu.&lt;br /&gt;
# RIGHT to select the NUM submenu.&lt;br /&gt;
# 2 to select round(, or use arrows.&lt;br /&gt;
|compatibility=TI-83/84/+/SE&lt;br /&gt;
|size=1 byte&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
round(&amp;#039;&amp;#039;value&amp;#039;&amp;#039;[,&amp;#039;&amp;#039;#decimals&amp;#039;&amp;#039;]) returns &amp;#039;&amp;#039;value&amp;#039;&amp;#039; rounded to &amp;#039;&amp;#039;#decimals&amp;#039;&amp;#039; decimal places. &amp;#039;&amp;#039;#decimals&amp;#039;&amp;#039; must be &amp;lt; 10. The default value for &amp;#039;&amp;#039;#decimals&amp;#039;&amp;#039; is 9. Also works on complex numbers, lists and matrices.&lt;br /&gt;
&lt;br /&gt;
 round(5.45,0)&lt;br /&gt;
      5&lt;br /&gt;
 round(5.65,0)&lt;br /&gt;
      6&lt;br /&gt;
 round(‾5.65,0)&lt;br /&gt;
      ‾6&lt;br /&gt;
 round(π)-π&lt;br /&gt;
      4.102e-10&lt;br /&gt;
 round(π,4)&lt;br /&gt;
      3.1416&lt;br /&gt;
 round({1.5,2.4,3.8},0)&lt;br /&gt;
      {2,2,4}&lt;br /&gt;
 round([[1.8,3.5,120.3][3,‾1,0.2]],0)&lt;br /&gt;
      [[2  4   120]&lt;br /&gt;
      [3  ‾1  0   ]]&lt;br /&gt;
&lt;br /&gt;
= Advanced Uses =&lt;br /&gt;
&lt;br /&gt;
Sometimes, round-off error will cause the result of an expression to be slightly off of the correct integer value -- for example, a result may be 5.0000000013 instead of 5. If the error is small enough, it will not even be visible if you recall the variable on the home screen. However, this is enough to cause a [[TI-BASIC:Errors#domain|ERR:DOMAIN]] error with commands such as [[TI-BASIC:Sub|Sub(]] and [[TI-BASIC:Output|Output(]], which require their arguments to be integers.&lt;br /&gt;
&lt;br /&gt;
The easiest way to fix this problem is by wrapping the different arguments in a round( instruction. For example, you may replace Output(X,1,&amp;quot;&amp;gt;&amp;quot;) with Output(round(X),1,&amp;quot;&amp;gt;&amp;quot;). The [[TI-BASIC:Int|Int(]] command will not work here because the round-off error may be negative, such as 4.9999999986 instead of 5, in which case the number will be rounded down to 4.&lt;br /&gt;
&lt;br /&gt;
= Error Conditions =&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#domain|ERR:DOMAIN]]&amp;#039;&amp;#039;&amp;#039; if the number of places to round to is not an integer 0 through 9.&lt;br /&gt;
&lt;br /&gt;
= Related Commands =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Int|Int(]]&lt;br /&gt;
* [[TI-BASIC:Ipart|IPart(]]&lt;br /&gt;
* [[TI-BASIC:Fpart|FPart(]][[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>