Hi Andy,

If you could send your data to [email protected], I'd be happy to fix this for you now. I wasn't able to reproduce it using just the snippet below.

Thanks, John

On Sep 20, 2009, at 3:45 PM, Andrew Potter wrote:


Hi,
My ledger version is master-0-gd0c47b1.

I have D $1,000.00 declared at the top of my file.

I want to add this transaction:
09/13 * Fuel
 Assets:Fuel                              14.320 galGas {=$3.259}
 Liabilities:USAA:Mastercard                   $-46.67

But I get this error:
While parsing file "Finance/2009.lgr", line 3882:
While balancing transaction from "Finance/2009.lgr", lines 3880-3882:
09/13 * Fuel
 Assets:Fuel                              14.320 galGas {=$3.259}
 Liabilities:USAA:Mastercard                   $-46.67
Unbalanced remainder is:
            $-0.001
Error: Transaction does not balance


I've made quite a bit of use of the inline calculation feature,
including division, so I suspect that the program gets tricked into
thinking it needs one more place of precision than I want.

I tried placing an additional D $1,000.00 statement directly above this
xaction, but to no avail.

print --anon doesn't work quite perfectly (Similar rounding issues show
up earlier), but I'd be happy to email John my file if he wants.

Thanks,
Andrew Potter



Reply via email to