Just noticed one of the error in Windows Phone Calculator when performing an calculation …
Below are steps to reproduce this
1. Open the Windows Phone Calculator and switch to the LandScape view.
2. Enter the number 4 and tap Square root button . This will give the result 2.
3. Now subtract 2 from the above answer . What is the expected result ? Zero ? . You will get a different result as shown in the screenshot.
When trying the same on my Windows 7 Desktop too resulted in the same value …
Is that a Bug ? I think its a Kindoff Bug probably rounding error …
Got an update from @kunal2383 regarding this error . Here’s an article that describes the floating-point numbers.
http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html . Thanks Kunal 🙂
3 Comments
Hi Senthil,
That’s not a bug. It’s because of sqrt(4) returns 2.xxxxx but calculator actually round off the floating points to 2. There are some floating point Theorem available online. Read out this link: http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html
Thanks Kunal 🙂
Mac OS calculator doesn’t exhibit the bug.