This is standard behavior, since one often finds a larger amount of precision in cost values than in the posting's amount. You can use "D 1.000,00" or an equivalent at the top of the file to setup a default display precision for a particular commodity.

John

On Mar 25, 2010, at 4:03 PM, Martin Michlmayr <[email protected]> wrote:

With the file below, ledger writes EUR-10.2 instead of the expected
-10.20 EUR.  I can get the result I expect either by commenting out
the first line (i.e. specifying the format) or by commententing out
the first posting.

But why cannot ledger figure out the format automatically?  After all,
I wrote "@ 10.20 EUR".  Why does ledger not use the format I specified
after @?

Example:

;D 1.000 EUR

;2007/08/20 Bank transfer
;    Assets:Broker:Current            0.00 EUR
;    Assets:Bank:Current

2010-01-01 Buy AAPL
   Assets:Fund                         1 TEST @ 10.20 EUR
   Assets:Broker:Current

--
Martin Michlmayr
http://www.cyrius.com/

To unsubscribe from this group, send email to ledger-cli +unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

To unsubscribe from this group, send email to ledger-cli+unsubscribegooglegroups.com or 
reply to this email with the words "REMOVE ME" as the subject.

Reply via email to