Bug 836970

Summary: Error in gcalctool parser, wrong associations with square
Product: Red Hat Enterprise Linux 7 Reporter: Martin Simon <msimon>
Component: gnome-calculatorAssignee: Alexander Larsson <alexl>
Status: CLOSED CURRENTRELEASE QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: rstrode, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 833006 Environment:
Last Closed: 2013-07-29 07:54:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 833006    
Bug Blocks:    

Description Martin Simon 2012-07-02 11:15:18 UTC
+++ This bug was initially created as a clone of Bug #833006 +++

Description of problem:
If I do not enter any binary operator, the gcalctool thinks it's only one token entered, that's wrong.

Version-Release number of selected component (if applicable):
gcalctool-6.4.2.1-1.fc17.i686

How reproducible:
100%

Steps to Reproduce:
1. 2(-3)^2
2.
3.
  
Actual results:
36

Expected results:
18

Additional info:
-3^2 should give me -9, not 9.. The square is associated from right, it means -3^2 it's the same as -(3)^2, not (-3)^2 as gcalctool pretends. Only way how to reach -9 is to enter -1*3^2 and that's really ugly solution.

Comment 3 Martin Simon 2013-07-29 07:54:59 UTC
The bug is not present in the latest gnome-calculator (gnome-calculator-3.8.2-1.el7.x86_64). Closing this bug as fixed then