The fPart() command
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.