The fPart() command

We're glad you came by, but you might find what you're looking for elsewhere.

TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it.

Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope.

fpart.png

Command Summary

Returns the fractional part of a value.

Command Syntax

fPart(value)

Menu Location

Press:

  1. [2nd] + [MATH] to access the math menu.
  2. [RIGHT] to access the Number submenu.
  3. 5 to select fPart(, or use arrows.

Alternativly, type "fPart(" with the keyboard

Calculator Compatibility

TI-89/92/+/V200

Token Size

6 bytes

fPart(value) returns the fractional part of value. Also works on complex numbers/expressions, lists and matrices.

fPart(5.32)
             .32
fPart([[‾1.5,3.2][6.8,‾7.9]])
             [‾.5,.2]
             [.8,‾.9]
fPart({‾1.5,3.2,6.8,‾7.9})
              {‾.5,.2,.8,‾.9}
fPart(3.26+4.3i)
              .26+.3i

Advanced Uses

To check if a number x is a whole number, you can simply check if the fPart(x)=0:

:If fPart(x)=0 Then
:©X is an integer
:Else
:©X is not an integer
:End

Related Commands

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial 2.5 License.