maemo.org Bugzilla – Bug 12514
Calculator program, percentage operations
Last modified: 2012-03-30 17:59:06 UTC
You need to
before you can comment on or make changes to this bug.
EXACT STEPS LEADING TO PROBLEM:
(Explain in detail what you do (e.g. tap on OK) and what you see (e.g. message
Connection Failed appears))
1. Start Calculator app.
2. Type "100-10%"
According to almost all desktop/engineer calculators the result should be "90".
The result is "99".
EXTRA SOFTWARE INSTALLED:
describes why this is not an error.
So why did you file this bug report?
(In reply to comment #1)
> describes why this is not an error.
I would be surprised if the syntax of "100 - 10%100" described there matches
the behaviour of the default PR1.3 calculator. If it does, this is NOTABUG;
however the Calculator replacement should be feature compatible with the stock
The "steps to reproduce" should refer to the stock Calculator (and the version
of Maemo it's tested on) and the "expected outcome" is "same on both", IMNSHO.
Unfortunately, I don't have an N900 with me to test. The Harmattan calculator
doesn't provide a %ge operation.
Created an attachment (id=3438) [details]
Created an attachment (id=3439) [details]
both times I entered exactly this on the ui keyboard
100 - 10 %
100 - 10 % 100
Percentage bug should be fixed by this commit:
Power function bug "2^(-1.5" is reported here: https://bugs.maemo.org/12515
Reopening based on http://talk.maemo.org/showpost.php?p=1152320&postcount=187
1000-10 % ends as 990
whilst the stock calculator gives 900
1000-10 % 100 gives 990 in the stock calculator aswell
a few more examples:
stock: 10 + 200 + 50% = 310
cssu: 10 + 200 + 50% = 260
stock: (10 + 200) + 50% = 315
cssu: (10 + 200) + 50% = 260
so it seems that if the stock calculator misses the 2nd value for % it takes
the one in front instead.