Public bug reported:

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://www.gnu.org/software/emacs/manual/html_node/calc/Formulas.html
http://www.wolframalpha.com/input/?i=6%2F2%281%2B2%29
http://www.google.com/search?q=6%2F2%281%2B2%29

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gcalctool 5.32.0-0ubuntu4
ProcVersionSignature: Ubuntu 2.6.35-32.67-generic 2.6.35.14
Uname: Linux 2.6.35-32-generic x86_64
NonfreeKernelModules: nvidia
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

** Affects: gcalctool (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug maverick

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1051022

Title:
  Implicit multiplication

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcalctool/+bug/1051022/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to