Continuos calculation doesn't work with irrational results
Bug #1357983 reported by
Alan Pope 🍺🐧🐱 🦄
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Calculator App |
Fix Released
|
Critical
|
Riccardo Padovani |
Bug Description
Do the following:-
6/2=
Result=3
-1=
Result=2
The calculation works okay and displays fine.
However try:-
5/3=
Result=1.6666667
-1=
Result=0.55555556
However the "-1" bit doesn't get displayed.
Related branches
lp:~rpadovani/ubuntu-calculator-app/1357983
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Nicholas Skaggs (community): Needs Fixing
- Bartosz Kosiorek: Approve
- Alan Pope 🍺🐧🐱 🦄: Pending requested
-
Diff: 54 lines (+11/-11)3 files modifiedSimple/SimplePage.qml (+1/-10)
formula.js (+9/-0)
tests/autopilot/ubuntu_calculator_app/tests/test_simple_page.py (+1/-1)
Changed in ubuntu-calculator-app: | |
status: | New → Confirmed |
Changed in ubuntu-calculator-app: | |
importance: | Undecided → Critical |
Changed in ubuntu-calculator-app: | |
assignee: | Bartosz Kosiorek (gang65) → Riccardo Padovani (rpadovani) |
Changed in ubuntu-calculator-app: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Oh, that's weird.
Well, the bug is a bit different: after a irrational number, continuos calculation doesn't work.
Look, 0.55555556 is 5/3/3, so the app doesn't take the '-1' and when you click = it continues with previous operator.
You can check with also 1/3, and other irrational numbers