android-calculatorpp
android-calculatorpp copied to clipboard
Floating point division rounding
When performing 2.45/0.35, the calculator returns 7.0000000000000001. The expected result is obviously 7.
Android v5.1 CPP v2.2.3
a same problem 10.53+25.12+62.3+68.72+65.902 => 413.2000000000001
68.72+65.902 => 269.2000000000001 (68.7+65.90)2 => 269.2000000000001 68.7+65.90 => 134.6 68.72+65.90 => 203.3 68.7+65.90*2 => 200.5
calculatorpp V2.2.3 Android v6.0
Reduced test case:
8.7 - 1 = 7.699999999999999
Android v6.0.1 CPP v2.2.3