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

Bug #1155277 reported by Alan Pope 🍺🐧🐱 πŸ¦„
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Calculator App
Fix Released
Medium
Riccardo Ferrazzo
Ubuntu UX
Fix Committed
Medium
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
Revision history for this message
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
Revision history for this message
Riccardo Ferrazzo (f-riccardo87) wrote :

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

Revision history for this message
Riccardo Ferrazzo (f-riccardo87) wrote :

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

Revision history for this message
Riccardo Ferrazzo (f-riccardo87) wrote :

Here is the proposed solution for continuing calculations

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

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
Revision history for this message
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)
Changed in ubuntu-calculator-app:
status: Fix Committed → Fix Released
John Lea (johnlea)
Changed in ubuntu-ux:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.