calculator uses incorrect operator precedence
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
NonfreeKernelMo
Package: gcalctool 5.24.1-0ubuntu1
ProcEnviron:
PATH=/
LANG=en_US.UTF-8
SHELL=/bin/tcsh
SourcePackage: gcalctool
Uname: Linux 2.6.27-7-generic i686
Related branches
Changed in gcalctool: | |
status: | Unknown → Fix Released |
Changed in gcalctool: | |
importance: | Unknown → Medium |
thanks for the report.