Interchange Developer Resource


[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

[ic] rounding decimals and euro



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)
---------------------
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users


Search for: Match: Format: Sort by: