[ic] Decimal calculation problem

Jason Kohles interchange-users@lists.akopia.com
Tue Jun 5 16:42:00 2001


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