Problem with rounding floats - 12,70...01 instead of 12,7

Bug #1445152 reported by Antoni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Calculator App
Fix Released
Medium
Bartosz Kosiorek

Bug Description

As I observed in this thread
https://lists.launchpad.net/ubuntu-phone/msg12141.html
if you compute simple expression like this
10*0,2+12*0,4+14*0,25+16*0,15
in calculator app you get as a result
12,700000000000001
I understand that computations on floats are tricky but for such a simple expression the result should be exact.

Related branches

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

We should introduce BigNumbers to fix that issue.

Changed in ubuntu-calculator-app:
status: New → Triaged
importance: Undecided → Medium
Changed in ubuntu-calculator-app:
status: Triaged → In Progress
assignee: nobody → Bartosz Kosiorek (gang65)
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 170, scheduled for release in ubuntu-calculator-app, milestone Unknown

Changed in ubuntu-calculator-app:
status: In Progress → Fix Committed
Changed in ubuntu-calculator-app:
status: Fix Committed → Fix Released
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.