<?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%3AInt</id>
	<title>TI-BASIC:Int - 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%3AInt"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Int&amp;action=history"/>
	<updated>2026-05-30T03:59:08Z</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:Int&amp;diff=904&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:Int&amp;diff=904&amp;oldid=prev"/>
		<updated>2016-02-24T18:24:35Z</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=INT.GIF&lt;br /&gt;
|summary=Rounds a value down to the nearest integer.&lt;br /&gt;
|syntax=int(&amp;#039;&amp;#039;value&amp;#039;&amp;#039;)&lt;br /&gt;
|location=Press:&lt;br /&gt;
# MATH to access the [[TI-BASIC:Math|Math]] menu.&lt;br /&gt;
# RIGHT to access the NUM submenu.&lt;br /&gt;
# 5 to select int(, 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;
int(&amp;#039;&amp;#039;value&amp;#039;&amp;#039;) is the [http://mathworld.wolfram.com/FloorFunction.html floor function]. It returns the greatest integer less than or equal to &amp;#039;&amp;#039;value&amp;#039;&amp;#039;. Also works on complex numbers, lists and matrices.&lt;br /&gt;
&lt;br /&gt;
 int(5.32)&lt;br /&gt;
                5&lt;br /&gt;
 int(4/5)&lt;br /&gt;
                0&lt;br /&gt;
 int(‾5.32)&lt;br /&gt;
                ‾6&lt;br /&gt;
 int(‾4/5)&lt;br /&gt;
                ‾1&lt;br /&gt;
&lt;br /&gt;
The difference between [[TI-BASIC:Ipart|IPart(]] and int( is subtle, and many people aren&amp;#039;t even aware of it, but it exists. Whereas iPart( always truncates its parameters, simply removing the integer part, int( always rounds down. This means that they return the same answers for positive numbers, but int( will return an answer 1 less than iPart( for (non-integer) negative numbers. For example, iPart(-5.32) is -5, while int(-5.32) is -6.&lt;br /&gt;
&lt;br /&gt;
Most of the time, however, you&amp;#039;re dealing with only positive numbers anyway. In this case, the decision to use iPart( or int( is mostly a matter of preference - some people only use int( because it is shorter, some people use iPart( when there is a corresponding [[TI-BASIC:Fpart|FPart(]] taken. However, see the Command Timings section.&lt;br /&gt;
&lt;br /&gt;
= Advanced Uses =&lt;br /&gt;
&lt;br /&gt;
int(, along with [[TI-BASIC:Ipart|IPart(]] and [[TI-BASIC:Fpart|FPart(]], can be used for integer [[TI-BASIC:Compression|Compression]].&lt;br /&gt;
&lt;br /&gt;
= Command Timings =&lt;br /&gt;
&lt;br /&gt;
The following table compares the speeds of int and [[TI-BASIC:Ipart|IPart(]]. Each command was timed over 2000 iterations to find a noticeable difference.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Format !! Bars !! Pixels !! Total &lt;br /&gt;
|-&lt;br /&gt;
| iPart(1 || 10 || 1 || 81 &lt;br /&gt;
|-&lt;br /&gt;
| iPart(1.643759 || 10 || 1 || 81 &lt;br /&gt;
|-&lt;br /&gt;
| int(1 || 8 || 7 || 71 &lt;br /&gt;
|-&lt;br /&gt;
| int(1.643759 || 10 || 2 || 82 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Conclusion: Unless there are 6 or more decimals, you should consider using int( because of its speed, but with a lot of decimals, iPart( stays the same so it goes faster.&lt;br /&gt;
&lt;br /&gt;
= Related Commands =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Ipart|IPart(]]&lt;br /&gt;
* [[TI-BASIC:Fpart|FPart(]]&lt;br /&gt;
* [[TI-BASIC:Round|Round(]]&lt;br /&gt;
&lt;br /&gt;
= See Also =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Compression|Compression]][[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>