lz_plus
The number itself, unchanged: the decimal standard's unary plus.
long lz_plus( CLZNumber* leftOperand, CLZNumber* targetNumber = nullptr );
Copies the number to the target with every digit kept; with no target it does nothing. It is the unary plus of the decimal arithmetic standards. To round a number to its precision, use lz_round.
Examples
| Call | Answer |
|---|---|
lz_plus( −2.5 ) | −2.5 |
lz_plus( 0x1F ) | 1F base 16 |
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.