FPT( ) |
Return Fractional Part |
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. |
Fractional portion of numeric.
The FPT( ) function returns the fractional portion of the given numeric value. The value returned is always rounded to the PRECISION currently in effect.
precision 3 |
Set precision |
... | |
A=fpt(1.345) |
Yields A = .345 |
B=fpt(A/10) |
Yields B = .035 |
begin |
Set precision to 2 |
A=fpt(5/3) |
Yields A = .67 |