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
    211
    10
  2. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    18,682
    18,581
    340
    Also try sqrt(16)-4

    :D
     
  3. SCBrigth

    SCBrigth MDL Senior Member

    May 9, 2009
    489
    73
    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
    2,549
    1,377
    90