
| Command Summary | Command Syntax | Calculator Compatibility | Token Size |
|---|---|---|---|
| Returns the fractional part of a value. | fPart(value) | TI-89/92/+/V200 | 6 bytes |
Menu Location
Press:
1. [2nd] + [MATH] to access the 68k:math menu.
2. [RIGHT] to access the Number submenu.
3. 5 to select fPart(, or use arrows.
Alternativly, type "fPart(" with the keyboard
The fPart() command
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
Authors: