[ic] rounding decimals and euro

marco ghezzi interchange-users@interchange.redhat.com
Fri Oct 26 05:05:01 2001


Hi all,
i'm in the process of setting up a interchange store.
the default currency is italian lire but i'm obviously implementing EURO.
i have locale setting working and the two currencies appearing nicely 
but the rounding of the EURO generated by PriceDivide is not correct.
eg
Lit 36.000 -> Euro 18.60
instead of
Lit 36.000 -> Euro 18.59

here are my LOCALE SETTINGS

Locale eur_EUR PriceDivide         1936,27
Locale eur_EUR p_cs_precedes       0
Locale eur_EUR currency_symbol     "<IMG src="euro.gif" border="0" 
align="bottom">"
Locale eur_EUR p_sep_by_space      2
Locale eur_EUR mon_decimal_point   ,
Locale eur_EUR mon_thousands_sep .
Locale eur_EUR frac_digits 2
#
Locale it_IT mon_thousands_sep .
Locale it_IT currency_symbol    L.
Locale it_IT frac_digits 0
Locale it_IT p_cs_precedes 1

how can I fix the rounding?

thanx for any suggestion

marco


-- 
---------------------
Metafora.it
---------------------
Opensource is just
a matter of time(tm)
---------------------