SimpleUnitConverter has a small accuracy issue

Bug #377091 reported by Patrick Knight
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SimpleUnitConverter
Fix Released
High
SimpleUnitConverter Development Team
0.x
Won't Fix
Wishlist
Unassigned
1.x
Fix Released
High
SimpleUnitConverter Development Team

Bug Description

Sometimes, when converting floating-point numbers, SimpleUnitConverter will change the number to be converted and/or the answer.

Steps to reproduce:
1. Download SimpleUnitConverter version 0.4 (using this version makes the issue more obvious)
2. Launch SimpleUnitConverter
3. Enter option 1
4. For "Enter degrees Celsius", enter 22.1
5. The result is "22.10000 degrees equals 71.780001 degrees Fahrenheit".

The actual result of the formula should be 71.78 degrees Fahrenheit (calculated with a calculator).

Another (slightly more glaring) example:
Do steps 1-2 above
3. Enter option 2
4. For "Enter degrees Fahrenheit", enter 39.22
5. The result is "39.20001 degrees Fahrenheit equals 4.011112 degrees Celsius".

The actual result should be 4.011111111 degrees Fahrenheit.

I know, it's a minuscule error, but it still needs to be fixed.

What to do about it:

I have no idea. I am looking for a more experienced developer to kindly help me figure out why this behavior is happening and how to fix. (I am a newbie developer, ~2-3 months)

Changed in simpleunitconverter:
importance: Undecided → Medium
collinp (collinp)
Changed in simpleunitconverter:
status: New → Confirmed
collinp (collinp)
Changed in simpleunitconverter:
assignee: nobody → SimpleUnitConverter Development Team (simpleunitconverter-devel)
Revision history for this message
Patrick Knight (pknight-dev-deactivatedaccount) wrote :

Targeted this bug to be fixed with the release of SimpleUnitConverter 1.1

Changed in simpleunitconverter:
importance: Medium → High
milestone: none → 1.1
status: Confirmed → In Progress
Revision history for this message
Patrick Knight (pknight-dev-deactivatedaccount) wrote :

Adding more accurate conversions as well as adding some rounding seems to have fixed this bug.

Changed in simpleunitconverter:
status: In Progress → 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.