Implicit multiplication
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcalctool (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Implicit multiplication appears to have higher precedence than division:
6/2(1+2) = 1
However no other calculator does that - implicit multiplication should be the same precedence as division, so:
6/2(1+2) = 6/2 * 3 = 3 * 3 = 9
If using explicit multiplication, gcalctool is correct:
6/2×(1+2) = 9
Other documentation and examples:
http://
http://
http://
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gcalctool 5.32.0-0ubuntu4
ProcVersionSign
Uname: Linux 2.6.35-32-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Fri Sep 14 21:10:20 2012
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/gcalctool
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
ProcEnviron:
PATH=(custom, user)
LANG=lv_LV.utf8
SHELL=/bin/bash
SourcePackage: gcalctool
Status changed to 'Confirmed' because the bug affects multiple users.