Bug#294714: gcalctool: does not obey operator precedence

Sebastien Bacher Sebastien Bacher <seb128@debian.org>, 294714@bugs.debian.org
Fri, 11 Feb 2005 13:52:16 +0100


severity 294714 wishlist
merge 294714 248499
thanks


Le vendredi 11 f=E9vrier 2005 =E0 10:04 +0000, David Vrabel a =E9crit :
>Package: gcalctool
>Version: 4.4.20-1
>Severity: normal
>
>gnome-calculator does not obey operator precedence when performing
>calculations.
>
>e.g., it calculates 1 + 2 * 3 =3D 9 instead of the expected 1 + 2 * 3 =3D=
 7.
>

Hi,

That's not a bug, according to the website
(http://calctool.sourceforge.net/):

"One of the most important things to remember about calctool is that
calculations are performed from left to right, with no arithmetic
precedence. If you need arithmetic precedence, then you should use
parentheses."


The devel is working on a new branch with arithmetic precedence, so this
bug should be fixed in the next versions.


Cheers,

Sebastien Bacher