calculator uses incorrect operator precedence

Bug #302115 reported by Mike Case
2
Affects Status Importance Assigned to Milestone
GCalctool
Fix Released
Medium
gcalctool (Ubuntu)
Fix Released
Low
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
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/tcsh
SourcePackage: gcalctool
Uname: Linux 2.6.27-7-generic i686

Tags: apport-bug

Related branches

Revision history for this message
Mike Case (casemi) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

thanks for the report.

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

this has been fixed upstream, thanks for reporting.

Changed in gcalctool:
status: Triaged → Fix Committed
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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