diff options
author | Max Nikulin <manikulin@gmail.com> | 2024-08-06 16:10:12 +0700 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2024-08-06 10:40:04 -1000 |
commit | b7be0a1fedfeec26e4b7d35357157d5a9209f3ee (patch) | |
tree | fb1584ca7ce34cbb38d34e9ecd4ad84659dfb538 /contrib/ledger-completion.bash | |
parent | 28ae2eaccb58e539dfd8f8533508a8edfe8bb027 (diff) | |
download | fork-ledger-b7be0a1fedfeec26e4b7d35357157d5a9209f3ee.tar.gz fork-ledger-b7be0a1fedfeec26e4b7d35357157d5a9209f3ee.tar.bz2 fork-ledger-b7be0a1fedfeec26e4b7d35357157d5a9209f3ee.zip |
Fix copy on write for amount_t::in_place_roundto
- Copy amount quantity before rounding.
- Fix `amount_t::roundto(int)`.
- Transform `balance/testRound` into `balance/testRoundto`.
It was a mix of `round` and `roundto` operation with unclear purpose
and was relying on `in_place_roundto` behavior modifying all copies.
There is no unit tests for balance `round` and `unround` any more.
Closes #2362
Diffstat (limited to 'contrib/ledger-completion.bash')
0 files changed, 0 insertions, 0 deletions