Hello! I've managed to break my ledger file again :(
$ ledger bal
Error: Divide by zero
I minimized it down to this transaction (numbers changed for privacy):
commodity FOO
format 1,000.00 FOO
2022/12/31 * Opening Balances
Assets:Brokerage 1.208 FOO @ $8.87
Equity:Opening Balances
2023/01/03 * Transaction
Assets:Brokerage -1.211 FOO @ $16.79
Assets:Brokerage -0.003 FOO @ $16.79 ; Fractional shares liquidated
Assets:Checking $20.38
Income:Capital Gains
$ ledger --args-only -f zero.ldg bal
While parsing file "zero.ldg", line 12:
Error: Divide by zero
$ ledger --version
Ledger 3.3.0-20230208, the command-line accounting tool
I always seem to hit these edge cases :)
Thanks, Tavis.
--
_o) $ lynx lock.cmpxchg8b.com
/\\ _o) _o) $ finger [email protected]
_\_V _( ) _( ) @taviso
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ledger-cli/ttrsr2%24mtl%241%40ciao.gmane.io.