calculator uses incorrect operator precedence

Bug #302115 reported by Mike Case on 2008-11-25
Affects Status Importance Assigned to Milestone
Fix Released
gcalctool (Ubuntu)
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gcalctool

I am a C programmer and expect the calculator to honor similar operator precedence. Typing "~D AND D" should therefore yield 0 since bitwise negation is usually interpreted as the most tightly binding. However, this gets parsed as "~(D AND D)" which is incorrect. It should be "(~D) AND D".

This is in Ubuntu 8.10:
ii gcalctool 5.24.1-0ubuntu1 A GTK2 desktop calculator

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/gcalctool
NonfreeKernelModules: ath_hal
Package: gcalctool 5.24.1-0ubuntu1
SourcePackage: gcalctool
Uname: Linux 2.6.27-7-generic i686

Related branches

Mike Case (casemi) wrote :
Pedro Villavicencio (pedro) wrote :

thanks for the report.

Changed in gcalctool:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Confirmed
Pedro Villavicencio (pedro) wrote :
Changed in gcalctool:
status: Confirmed → Triaged
Pedro Villavicencio (pedro) wrote :

this has been fixed upstream, thanks for reporting.

Changed in gcalctool:
status: Triaged → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcalctool - 5.25.3-0ubuntu1

gcalctool (5.25.3-0ubuntu1) jaunty; urgency=low

  * New upstream version (LP: #312125).
    - Bitcalculating extension calculate value properly (LP: #200590).
    - Usage of correct operator precedence (LP: #302115).
    - Allow switch to rad (LP: #306702).

 -- Christophe Sauthier <email address hidden> Fri, 26 Dec 2008 16:20:06 +0100

Changed in gcalctool:
status: Fix Committed → Fix Released
Changed in gcalctool:
status: Unknown → Fix Released
Changed in gcalctool:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.