lz_normalize
The number with its trailing noughts after the point removed.
long lz_normalize( CLZNumber* leftOperand, CLZNumber* targetNumber = nullptr );
Trailing noughts after the point are removed and the value is unchanged: 2.500 becomes 2.5 and 100.000 becomes 100.
Examples
| Call | Answer |
|---|---|
lz_normalize( 2.500 ) | 2.5 |
lz_normalize( 100.000 ) | 100 |
lz_normalize( 0.000 ) | 0 |
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_quantizeThe left number rounded to as many places as the right number has.lz_plusThe number itself, unchanged: the decimal standard's unary plus.