On Dec 20, 2009, at 5:39 PM, thierry wrote:

> I found the following test case where
> - it balances correctly with ledger v2.6.2
> - it balances with error with ledger git
> 
> I believe there is something around locale decimal separator, as I am
> in Europe/France, and decimal separator is a comma "," but not a dot
> "."
> 
> Thierry
> 
> $ cat toto2.ledger
> 2009/10/01    Achat
>       Actif:Symphonis Vie:Magellan    0,1302 Magellan @ 1305,680 €
>       Actif:BNP CC    -170,00 €

Your guess is right.  A number like 1305,680, for a commodity which is being 
seen for the first time, is always interpreted as a thousands marker in a 
non-European figure.

Please add the line "--european" to the top of your file (or in your 
~/.ledgerrc file), to adjust this initial bias toward European number styles.

John

Reply via email to