LANG, LC_ALL and rounding mistery

Dave Peticolas dave@krondo.com
Tue, 14 Nov 2000 02:55:38 -0800


Andrea Borgia writes:
> Hi.
> 
> In 1.4.8, I tried setting LANG=it and LC_ALL=it_IT. Whenever I type or
> edit a non-integer amount (say, of EUR, since ITL does not have
> cents), it gets rounded to the closest integer.
> 
> The funny part is that the amount is still saved as a fixed-point
> number, you just don't see the decimal part.
> 
> Is this a bug or a feature (i.e., old bug) ?

It is a 'feature' of the stable series, which prints all currency
amounts according to the current locale, regardless of their actual
denomination. This is fixed in the development version, which prints
amounts according to their currency, but the fix involved many changes
and won't be back-ported to 1.4.

In the meantime, I'm not sure how to address this. We could always
print at least 2 decimal places, perhaps?

dave