REPRODUCIBILITY: Always
OS VERSION: 4.4.0.72
HARDWARE: Sony X Compact
UI LANGUAGE: German
REGRESSION: Not tested
DESCRIPTION:
Divide 15 by 16 with Calculator and wonder why the result will be rounded for unknown reason.
Maybe this is a Feature and not a bug, but i was wodering why there will be rounded on such less Digits.
PRECONDITIONS:
Nothing
STEPS TO REPRODUCE:
Open Calculator and Divide 15 by 16
Result 0,938 is shown but should be 0,9375
EXPECTED RESULT:
Correct Calculated Value
ACTUAL RESULT:
The Second Position after the Komma is being rounded
Quanto Fa, RPNCalc, MeeCalc and emu48 (Android HP48 emulator) all show 0,9375.
0,938 is correctly rounded to 3 digits after the comma.
Are there any settings in stock calculator regarding the number of digits after the comma? (I canât check because I did deinstall stock calculator on my phone)
You may change calculation.result.valueText into either calculation.result.value, or calculation.result.preciseValueText and compare the result.
Hint: when testing, 15/16 isnât a very good test as its result has four digits after the comma. Try 1/3 or something to see real differences in display.
And by the way: At least the Jolla Calculator does maths correctly, unlike the Windows 10 calculator which doesnât even get the basic operator precedence (âBODMASâ) right.
It should be something you can set. If you do financial calculations like exchange rate, 3 decimal points can be a very expensive rounding error. Obviously, that depends on the sums, but take a crack at converting 150000 CAD to EUR and see what a difference that rounding error brings.
This is a bug that could simply be solved with a setting.
Ah but the actual calculations are done (I presume) at higher precision. Hence the valueText vs. value properties, and the fact that preciseValueText can have very long strings.
But isnât the point of doing divisions homework like this to learn the method? Using a calculator is cheating, so itâs a good thing in this case that it makes it easier for the teacher to pick out the cheaters
Iâm not so sure. Saying âworks as designedâ bascially forces you to install a third party calculator. Isnât that bit strange when itâs a simple matter?
The difference is 0.1 Eurocent at most, isnât it?
For instance, 150000 / 0.73920499 (a sample exchange rate I found on the internet) is 202920.708097. The Jolla calculator rounds the result (not the operands) to 3 decimals and gives 202920.708.
Right you are, was poor example. Last year I was going in the other direction EURO->CAD but the app that was annoying was only displaying 2 significant digits of the exchange rate. Which was thousands of dollars difference. Wasnât the calculator app. Still, I always want more