[Calculator app] Equals should cancel previous operators and return result

Reported by Alan Pope ㋛ on 2013-03-14
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Calculator App
Medium
Riccardo Ferrazzo
Ubuntu UX
Medium
Christina Li

Bug Description

Type the following:-

1 + 2 + 3 + =

I'd expect to get 6, but I get 0.

Related branches

lp:~f-riccardo87/ubuntu-calculator-app/calculation-results
Merged into lp:ubuntu-calculator-app at revision 36
Dalius (community): Approve on 2013-03-22
Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration) on 2013-03-22
Changed in ubuntu-calculator-app:
importance: Undecided → Medium
assignee: nobody → Riccardo Ferrazzo (f-riccardo87)
assignee: Riccardo Ferrazzo (f-riccardo87) → nobody
Alan Pope ㋛ (popey) wrote :

Further to this (probably related, so I'm not filing a new bug). There is an expectation that pressing = more than once will repeat an operation.

So:-

1 + 2 = should return 3
1 + 2 == should return 5
1 + 2 = = = should return 7
etc.

Changed in ubuntu-calculator-app:
assignee: nobody → Riccardo Ferrazzo (f-riccardo87)
status: New → In Progress

Isn't more correct if 1+2+= returns "error" instead of removing the last operator?

actually i'm planning to trigger an error message if the syntax is wrong and allow the user to use the previous result either clicking on it (when it is on the memory plot) or clicking an operation sign after the result (example: [1])

[1] 3 + 2 = 5 * 2 = 10

Here is the proposed solution for continuing calculations

Fix committed into lp:ubuntu-calculator-app at revision 36, scheduled for release in ubuntu-calculator-app, milestone alpha-1

Changed in ubuntu-calculator-app:
status: In Progress → Fix Committed
Christina Li (christina-li) wrote :

Hi Riccardo, when a user continues with the calculation, the equals sign should be hidden. Ie there should only be one equals sign at a time and that should be the final results one.

See attached image

summary: - Equals should cancel previous operators and return result
+ [Calculator app] Equals should cancel previous operators and return
+ result
Changed in ubuntu-ux:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Christina Li (christina-li)
Dalius (dalius-sandbox) on 2013-05-30
Changed in ubuntu-calculator-app:
status: Fix Committed → Fix Released
John Lea (johnlea) on 2013-08-08
Changed in ubuntu-ux:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers