1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

This is funny. 2-2=-8.1648 in MS calculator... Try it yourself :P

Discussion in 'BlackHat Lounge' started by bk071, Mar 2, 2011.

  1. bk071

    bk071 Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    Nov 24, 2010
    Messages:
    3,105
    Likes Received:
    7,917
    Occupation:
    I don't have a job
    Location:
    .............
    This is hilarious, really!

    Try it out yourself...
    1. Open ms calculator
    2. Get Square root of 4 (by pressing 4 then sqrt button)
    3. It will show 2. Not subtract 2 from that (By pressing - button than 2) and watch the magic after hitting the = button :)

    Here's a video too:
    http://www.youtube.com/watch?v=J2cQQP4nHnA

    Don't you think this is something weird about Microsoft? :D

    bk...
     
    Last edited: Mar 2, 2011
  2. Chees

    Chees Regular Member

    Joined:
    Apr 16, 2010
    Messages:
    476
    Likes Received:
    151
    I thought it would display the word shit.. disappointed
     
  3. haridada

    haridada Senior Member

    Joined:
    Oct 9, 2008
    Messages:
    996
    Likes Received:
    382
    Location:
    Chennai
    There's nothing weird or wrong about MS here.

    Its simple.

    You press 4 and hit the sqrt button which gives 2. As far the calculation is concerned, it is over.

    Beginning to use the "-" sign is a new calculation
     
  4. _Sunny_

    _Sunny_ BANNED BANNED

    Joined:
    Aug 12, 2009
    Messages:
    1,060
    Likes Received:
    743
    lol, same here.
    i expected the same
     
  5. bk071

    bk071 Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    Nov 24, 2010
    Messages:
    3,105
    Likes Received:
    7,917
    Occupation:
    I don't have a job
    Location:
    .............
    LOL guys I'm changing the title :)

    But it is funny ain't it??
     
  6. Disguised

    Disguised Newbie

    Joined:
    Nov 30, 2010
    Messages:
    4
    Likes Received:
    1
    I was expecting to see S written when I press '='

    It's still a bit messed up on why it would do that.
     
  7. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    5,913
    Likes Received:
    7,150
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
  8. arbydee2

    arbydee2 Regular Member

    Joined:
    Mar 20, 2010
    Messages:
    413
    Likes Received:
    223
    Location:
    127.0.0.1
    Home Page:
    Typical MS programmers. They can't get anything right.
     
    • Thanks Thanks x 1
  9. _Biju_

    _Biju_ Junior Member

    Joined:
    Nov 18, 2010
    Messages:
    171
    Likes Received:
    67
    Location:
    Here
    Home Page:
    That's normal actualy, and it happens inside your processor, and the error is propagated into many other applications if not treated (ex. in Flash (4.35-4)*100=34.999999999). It's because the numbers are represented in floating point.
     
  10. blackma

    blackma Power Member

    Joined:
    Jul 9, 2009
    Messages:
    795
    Likes Received:
    860
    Occupation:
    Blackhat Marketer (Full Time)
    Location:
    yendyS
    Home Page:
    This is a truncation error.

    Press Any Key to continue...
     
  11. buttulgly

    buttulgly Junior Member

    Joined:
    Nov 25, 2010
    Messages:
    123
    Likes Received:
    40
    It is not -8.164 (ignoring the rest of the numbers).

    It is -8.164e-39. Basically that is 0.0(insert lots and lots of zeros)8164

    It is probably caused by some memory overflow in the square root calculation (not sure but am taking a guess why the number is not zero but very close to it).

    You can see a very similar thing in the scientific calculator. click View then Scientific. It does not have (on XP version anyway) have a sqrt button here, but it does have an x^y (or x to the power of y). Put in 4, hit that button, hit 0.5 and click =

    Answer is 2 (4 to the power of .5). Now extract 2 and you get 1.06e-38.

    How many zeros is that? Probably the same in the US national debt. Ok, maths lesson over. That's enough work evasion therapy.
     
    • Thanks Thanks x 1
    Last edited: Mar 2, 2011
  12. wkrappen91

    wkrappen91 Power Member

    Joined:
    Sep 9, 2010
    Messages:
    588
    Likes Received:
    720
    Location:
    127.0.0.1
    The Result is:
    0,0000000000000000000000000000000000000081648465955514287168521180122928
    Not 100% Correct, but Around 99,999999999999999999999999999999% right i would assume
     
  13. buttulgly

    buttulgly Junior Member

    Joined:
    Nov 25, 2010
    Messages:
    123
    Likes Received:
    40
    Awesome BMW meter wkrappen91 :cool:
     
  14. arbydee2

    arbydee2 Regular Member

    Joined:
    Mar 20, 2010
    Messages:
    413
    Likes Received:
    223
    Location:
    127.0.0.1
    Home Page:
    Yeah, sure looks like it's professionally designed j/k :D