:fPart(value)
fPart( returns the fractional part of a number or expression.
Location[]
- Math
- NUM
- 4:fPart(
Examples[]
:3.141→X :Disp fPart(X)
This program will output .141.
fPart can also be used to perform modulo (remainder division) operations:
:Prompt(A,B :Disp fPart(A/B)*B
This simple operation will calculate the remainder of A divided by B.