Windows Calculator Showing Strange Output

calculatorwindows

Try this on Windows

Steps:

  1. Open Calculator directly or by typing calc in RUN.
  2. Then type 4 and take square root "sqrt"
  3. And whatever you get(ideally you will get 2!), substract 2 from it.

Now My Question is, is this mathematically right ??

Best Answer

Ideally not right, but the way floating point number are represented inside computer would result in such unexpected answer.

If you look into the numerical value of the answer, it is very close to 0, that is the expected answer.

Related Question