HomeGeneralIs this Windows Calculator Bug ?

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. User Avatar
    March 31, 2012
    Reply

    Thanks Kunal 🙂

  3. Kevin
    April 3, 2012
    Reply

    Mac OS calculator doesn’t exhibit the bug.

Leave a Reply

You May Also Like

In today’s economy, layoffs have become a common occurrence. Companies may lay off employees for a variety of reasons, including...
Facebook is one of the most popular social media platforms in the world, with millions of users connecting with friends...
Temperature is a critical physical quantity that helps us determine the amount of heat present in a substance or environment....