System Functions
FPT( ) Return Fractional Part
 
Format FPT(num[,ERR=stmtref])
 
Where:
 
num Numeric expression whose fractional portion will be returned.
 
stmtref Program line number or statement label to which to transfer control.
 
Returns Fractional portion of numeric.
 
Description The FPT( ) function returns the fractional portion of the given numeric value. The value returned is always rounded to the PRECISION currently in effect.
 
Examples 0020 PRECISION 3 Set precision
0030 ...
0100 LET A=FPT(1.345) yields A = .345
0110 LET B=FPT(A/10) yields B = .035
 
0040 BEGIN Set precision to 2
0050 LET A=FPT(5/3) yields A = .67