Unable to evaluate "(3+4i)^2" formula with BigNumbers
Bug #1515600 reported by
Bartosz Kosiorek
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Calculator App |
Fix Released
|
Critical
|
Bartosz Kosiorek |
Bug Description
When I'm trying to run "eval" function on "(3+4i)^2" string, it gives me exception:
"TypeError: Property 'toExponential' of object -6.999999999999997 + 24i is not a function"
It is an issue only in that case.
When I evaluate "(3+4i)*(3+4i)) it returns correct result "-7+24i"
Related branches
lp:~gang65/ubuntu-calculator-app/ubuntu-calculator-app-long-complex-numbers-fix
- Riccardo Padovani: Approve
- Bartosz Kosiorek: Needs Information
- Jenkins Bot: Approve (continuous-integration)
-
Diff: 161 lines (+40/-35)5 files modifiedapp/ubuntu-calculator-app.qml (+8/-17)
app/ui/Screen.qml (+7/-15)
debian/changelog (+8/-1)
tests/autopilot/ubuntu_calculator_app/__init__.py (+2/-2)
tests/autopilot/ubuntu_calculator_app/tests/test_main.py (+15/-0)
Changed in ubuntu-calculator-app: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix committed into lp:ubuntu-calculator-app at revision 239, scheduled for release in ubuntu- calculator- app, milestone Unknown