lz_round_last_digit
The number rounded at its own last place.
long lz_round_last_digit( CLZNumber* leftOperand, CLZNumber* targetNumber = nullptr );
Rounds off the number's last place, in its own rounding mode, half-even unless set otherwise: 2.25 becomes 2.2.
Examples
| Call | Answer |
|---|---|
lz_round_last_digit( 2.25 ) | 2.2 |
lz_round_last_digit( 1.234567 ) | 1.23457 |
Each answer is what Addaptic printed for the call, at 36 places unless a setting is shown.
Returns
kNoError (0) when the answer is written. Otherwise an error code, with the answer flagged infinite or not-a-number; see Errors and flags.
See also
lz_roundThe number rounded in its own rounding mode, half-even by default.lz_round_integralThe number rounded to a whole number, half-even by default.