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

Bug #1155277 reported by Alan Pope 🍺🐧🐱 πŸ¦„ on 2013-03-14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Calculator App
Riccardo Ferrazzo
Ubuntu UX
Christina Li

Bug Description

Type the following:-

1 + 2 + 3 + =

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

Related branches

Changed in ubuntu-calculator-app:
importance: Undecided → Medium
assignee: nobody → Riccardo Ferrazzo (f-riccardo87)
assignee: Riccardo Ferrazzo (f-riccardo87) → nobody

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.


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

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