Re: Desktop Calculator
- Posted by ghaberek (admin) Oct 21, 2020
- 1539 views
petelomax said...
I just stumbled upon another one: what does 1+2*3 give you in Windows Calculator?
The answer is 9 if you're in standard mode, 7 if you're in scientific or programmer mode. Nice.
I think it has to do with the functionality it's trying to reproduce. On traditional desk calculator, pressing an operator completes the current calculation and uses the value to start a new one.
Key Press | Display |
---|---|
1 | 1 |
+ | 1 |
2 | 2 |
* | 3 |
3 | 3 |
= | 9 |
Now the flaw (bug?) seems to be in the way it displays the calculation it's performing in the background. When you press * it should clear the display and only show 3.
-Greg