Wednesday, 4 September 2013

Microsoft Windows Calculator Bug, Sqrt(4) – 2 != 0


The default Calculator application is preinstalled with Windows OS. But, it also contains a bug which is not fixed by Microsoft yet. In fact, this bug exists in almost all versions of Windows including XP, Vista, 7 and Windows 8.

This bug appears when you calculate the following:
This command first calculates the Square root of 4 and then subtracts 2 from the result. Square root of 4 is 2 and when you subtract 2 from it, the result is 0. In case, you use the Standard mode of Calculator then the result would be displayed as - 1.068281969439142e-19. In Scientific calculator, you get the result 8.1648465955514287168521180122928e-39 as shown in following screenshot:
Thus, it is definitely a bug. You get different result in different Windows versions. The reason behind this bug can be the way in which computer calculates the square root. The square root of 4 is calculated as 1.9999….. up to infinite by computer. After that, it shows the result as 2 using the round off mechanism. And, when you subtract 2 from the result then it actually subtracts it from 1.9999….. up to infinite. Eventually, it provides the result as the big series of numbers in minus.
Therefore, it is a bug similar to Notepad bug which also exists in all Windows versions. For more from the XpertCrewTM team, please follow us on Twitter @Techvedic or contact Techvedic’s computer support helpdesk, as per below contact-details:
U.S. +855-859-0057 ( )
U.K. +800-635-0716 ( )
CA 1-855-749-5861 ( )
AU 1-800-197-298 ( )
And yes, we are eagerly waiting for your valuable feedback. Do write us back. We would be more than happy to help you. We are available 24/7.


Post a Comment