gray laptop computer showing html codes in shallow focus photography

Is this Windows Calculator Bug ?

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

  1. March 31, 2012
    Reply

    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

  2. March 31, 2012
    Reply

    Thanks Kunal 🙂

  3. Kevin
    April 3, 2012
    Reply

    Mac OS calculator doesn’t exhibit the bug.

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

No, the forward navigation is currently not supported in Windows Phone 8. Q&A #42 – Is Forward Navigation supported in...
A few months back i had posted a Q&A on the Topic " What it takes to be a Good...
If you are a regular readers of the technical books , Apress is one of the publishers which comes in...