[ic] Decimal calculation problem

Vagel interchange-users@lists.akopia.com
Tue Jun 5 16:24:00 2001


This is a multi-part message in MIME format.

------=_NextPart_000_0034_01C0EDEC.9E084220
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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!

Of course the system multiplies only 100 * 1 leaving the number after =
the decimal.

Same if i'm doint [calc]100*6.5[/calc] this gives me 600 instead of 650.

Has anyone any idea on what i'm doint wrong?

Thanks in advance
Cheers
Vagel


------=_NextPart_000_0034_01C0EDEC.9E084220
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello everyone,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm using Interchange V4.6.1on Linux =
7.0=20
with&nbsp;MySQL-3.23.28 and Perl 5.6.0-9.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I just try to perform some simple =
calculations=20
using decimals like for example:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>[calc]100*1.5[/calc] which gives me 100 =
in state of=20
150!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Of course the system multiplies only =
100 * 1=20
leaving the number after the decimal.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Same if i'm doint [calc]100*6.5[/calc] =
this gives=20
me 600 instead of 650.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Has anyone any idea on what i'm doint=20
wrong?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Cheers</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Vagel</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0034_01C0EDEC.9E084220--