[ic] Decimal calculation problem

Mike Heins interchange-users@lists.akopia.com
Wed Jun 6 09:48:00 2001


Quoting Vagel (vagel@telaxion.com):
> Thank you for the answer Jason and Vlad.
> 
> Unfortunatelly, I tried [calc]return(100*1.5);[/calc] but this still gave me
> 100...
> Finally I worked it out by doing [calc]return(100*15/10);[/calc]  which of
> course is not a real solution but just sufficient untill to be ready to try
> an upgrade to version 4.6.5 or 4.7 - not that simple having on line shops
> ;-)
> 

I am guessing your problem has to do with the locale; try
[calc] 100 * 1,5 [/calc] and see if that works like you would normally
expect. Normally, Interchange should ignore locale in that situation, but
I don't pretend to understand all aspects of locales and how they can apply
in all situations. It is possible we are within the scope of a "use locale"
in some situations.

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

Nature, to be commanded, must be obeyed. -- Francis Bacon