FPT() Function - Fractional Part of Decimal
Syntax
FPT(num{,ERR=lineref})
Description
The FPT() function returns the fractional part of the numeric expression. The result has the same sign as the argument.
Parameter |
Description |
---|---|
num |
Numeric expression to be rounded. |
ERR=lineref |
Branch to be taken if an error occurs during execution. |
Examples
>PRECISION 3
>PRINT FPT(55.555)
.555
>PRECISION 2
>PRINT FPT(55.555)
.56
>PRINT FPT(55.554)
.55