Oh, okay, thanks, I guess I didn't think it was a bug just a major
change :)
I guess a minimum testcase would be some transaction that needs
rounding, e.g.
2025/01/01 * Opening Balances
Assets:Brokerage $123.45
Equity:Opening Balances
2025/02/01 * Investment
Assets:Brokerage 0.005 FOO @ $124.95
Assets:Brokerage 0.001 BAR @ $124.95
Assets:Brokerage
with main you get:
$ ledger --cost -X USD bal
$123.44 Assets:Brokerage
$-123.45 Equity:Opening Balances
--------------------
$-0.01
But every rounded transaction can add a penny, so if I duplicate it
three times...
2025/01/01 * Opening Balances
Assets:Brokerage $123.45
Equity:Opening Balances
2025/02/01 * Investment
Assets:Brokerage 0.005 FOO @ $124.95
Assets:Brokerage 0.001 BAR @ $124.95
Assets:Brokerage
2025/02/01 * Investment
Assets:Brokerage 0.005 FOO @ $124.95
Assets:Brokerage 0.001 BAR @ $124.95
Assets:Brokerage
2025/02/01 * Investment
Assets:Brokerage 0.005 FOO @ $124.95
Assets:Brokerage 0.001 BAR @ $124.95
Assets:Brokerage
$ ledger --cost -X USD bal
$123.42 Assets:Brokerage
$-123.45 Equity:Opening Balances
--------------------
$-0.03
In the current release, I think it would be zero, because rounding only
happens once.