Bug: Calculator cant calculate correctly

Discussion in 'Windows 7' started by Windows Fan, May 28, 2012.

  1. Windows Fan

    Windows Fan MDL Senior Member

    Mar 6, 2012
    352
    210
    10
  2. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    17,641
    15,558
    340
    Also try sqrt(16)-4

    :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. SCBrigth

    SCBrigth MDL Senior Member

    May 9, 2009
    483
    68
    10
    It's not a bug but a rounding issue, try to calculate like this:
    int(sqrt(2))-2 the result will be zero.

    Any calculation you make in windows calculator, in which the result of the root is the same number you are subtracting will have this error due to rounding.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. CaptainKirk1966

    CaptainKirk1966 Former MDL Guru

    Oct 31, 2009
    1,947
    929
    60