Original author: firstname.lastname@example.org (August 13, 2010 01:13:42)
Thierry Daucourt reported a case where hledger fails to balance a transaction that ledger allows. Eg:
A 55.3653 C @ 30.92189512 D
A -1712 D
hledger compares the actual amounts. ledger compares the displayed strings, and the display precision is zero decimal places, since ledger does not consider the precision of prices. We should be more like ledger here.
Original issue: http://code.google.com/p/hledger/issues/detail?id=23
From email@example.com on November 14, 2010 22:54:09
Fixed. We now behave like ledger here:
Like ledger, price amounts are now "unobserved", ie their precision does
not affect the canonical display precisions used when displaying amounts,
and transaction balancing is done based on display precision, ie amounts
are considered to balance if their sum appears to be zero when using the
canonical display precision.
This should work better for people working with commodity prices. Thierry also asked for implicit price (calculated from two amounts) and explicit total cost (specified with @@) support, folks needing that should feel free to open and upvote a separate wishlist issue