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 Admin / Adviser
    Staff Member

    Nov 30, 2009
    18,966
    19,522
    340
    Also try sqrt(16)-4

    :D
     
  3. SCBrigth

    SCBrigth MDL Senior Member

    May 9, 2009
    488
    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
    Staff Member

    Oct 31, 2009
    2,676
    1,549
    90