[ic] Locale PriceDivide stopped working

Mike Heins interchange-users@lists.akopia.com
Thu Jul 12 07:26:00 2001


Quoting Ton Verhagen (ton@verhagen.net):
> And again it just stopped working;-/
> 
> 
> At 11:31 AM 7/12/01 +0200, you wrote:
> >Just changed the mon_decimal_point from , to . for eur_EUR
> >Result: PriceDivide uses all fractional digits (2.20371) now, which is okay.
> >
> >It seems that all figures are treated as a currency amount, or 
> >mon_decimal_point and decimal_point are mixed up somewhere. PriceDivide 
> >shoudn't be treated as a currency but just as a normal figure imho, shoud 
> >it? Or am I all over the place today?

I am guessing that the locale is being used when it should not; if there
is a "use locale" in the wrong place then the division would be done
using commas as the fractional point.

I cannot see where that would be, though; the conversion is a straight
division done at the beginning of Vend::Util::Currency. Can you show the
page code where the anomaly occurs?

-- 
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH  45013
phone +1.513.523.7621      <mheins@redhat.com>

Few blame themselves until they have exhausted all other possibilities.
 -- anonymous