[ic] Decimal calculation problem

Vagel interchange-users@lists.akopia.com
Wed Jun 6 01:41:00 2001


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
;-)

Thanks again and have a nice day
Vagel

>Date: Tue, 5 Jun 2001 16:33:20 -0400
>From: Jason Kohles <jkohles@redhat.com>
>To: interchange-users@developer.akopia.com
>Subject: Re: [ic] Decimal calculation problem
>Reply-To: interchange-users@lists.akopia.com
>On Tue, Jun 05, 2001 at 06:23:28PM +0200, Vagel wrote:
> Hello everyone,
>
> I'm using Interchange V4.6.1on Linux 7.0 with MySQL-3.23.28 and Perl
5.6.0-9.
> I just try to perform some simple calculations using decimals like for
example:
>
> [calc]100*1.5[/calc] which gives me 100 in state of 150!
>
>This appears to be fixed in 4.7, as I can't reproduce it there. Whatever
the
>cause is you can probably fix it by making the calc a bit more specific,
try
>something like this:
>[calc]return(100*1.5);[/calc]
>--
>Red Hat E-Business Solutions Jason Kohles
>11480 Sunset Hills Road Senior System Architect
>Reston, VA 20190 jkohles@redhat.com