After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 303247 - calculator doesn't respect order of operations (arithmetic precedence) in scientific mode
calculator doesn't respect order of operations (arithmetic precedence) in sci...
Status: RESOLVED DUPLICATE of bug 121710
Product: gnome-calculator
Classification: Core
Component: general
unspecified
Other other
: Normal normal
: ---
Assigned To: Rich Burridge
Rich Burridge
Depends on:
Blocks:
 
 
Reported: 2005-05-06 13:32 UTC by bugs.gnome.org
Modified: 2005-05-06 14:19 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8



Description bugs.gnome.org 2005-05-06 13:32:47 UTC
Distribution: Debian 3.1
Package: gcalctool
Severity: normal
Version: GNOME2.8.3 unspecified
Gnome-Distributor: Debian
Synopsis: calculator doesn't respect order of operations (arithmetic precedence) in scientific mode
Bugzilla-Product: gcalctool
Bugzilla-Component: general
Bugzilla-Version: unspecified
Description:
Description of Problem:

2+2*3 yields 12, instead of 8.

Steps to reproduce the problem:
1. Enter calculation above.
2. See results.
3. 

Actual Results: 12


Expected Results: 8


How often does this happen? Every time.


Additional Information:

The documentation (in Section 4, "Technical Information") notes that the
calculator ignores
precedence rules. While this might be reasonable for "basic" mode,
ignoring precedence
rules in scientific mode violates the rule of "least astonishment". I've
never heard of a
"scientific calculator" that ignored precedence rules.




------- Bug moved to this database by unknown@bugzilla.gnome.org 2005-05-06 13:32 UTC -------


The original reporter of this bug does not have
   an account here. Reassigning to the person who moved
   it here, unknown@bugzilla.gnome.org.
   Previous reporter was bugs.gnome.org@mukesh.agrawals.org.

Comment 1 Rich Burridge 2005-05-06 14:19:21 UTC
The version of gcalctool in GNOME 2.10 understands arithmetic
precedence. Time for your vendor to pick it up and use it, or you
can download it and install it from:

http://ftp.gnome.org/pub/GNOME/sources/gcalctool/5.5/

*** This bug has been marked as a duplicate of 121710 ***