<?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%3AIpart</id>
	<title>TI-BASIC:Ipart - 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%3AIpart"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Ipart&amp;action=history"/>
	<updated>2026-06-12T13:57:13Z</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:Ipart&amp;diff=851&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:Ipart&amp;diff=851&amp;oldid=prev"/>
		<updated>2016-02-24T18:21:53Z</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=IPART.GIF&lt;br /&gt;
|summary=Returns the integer part of a value.&lt;br /&gt;
|syntax=iPart(&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;
# 3 to select iPart(, 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;
iPart(&amp;#039;&amp;#039;value&amp;#039;&amp;#039;) returns the integer part of &amp;#039;&amp;#039;value&amp;#039;&amp;#039;. Also works on complex numbers, lists and matrices.&lt;br /&gt;
&lt;br /&gt;
 iPart(5.32)&lt;br /&gt;
                5&lt;br /&gt;
 iPart(4/5)&lt;br /&gt;
                0&lt;br /&gt;
 iPart(‾5.32)&lt;br /&gt;
                ‾5&lt;br /&gt;
 iPart(‾4/5)&lt;br /&gt;
                0&lt;br /&gt;
&lt;br /&gt;
The difference between iPart( and [[TI-BASIC:Int|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;
iPart(, along with [[TI-BASIC:Fpart|FPart(]] and [[TI-BASIC:Int|Int(]], 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 [[TI-BASIC:Int|Int(]] and 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:Int|Int(]]&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>