Beta

×

The evil emanating from Mordor^H^H^HMicrosoft.

lifebouy (UID: 115193) writes | more than 10 years ago

1

Those with a Windows box, try this experiment: Open the calculator and switch to scientific. Switch the mode to binary. Now try to subtract, lets say, 111111 from 11101011. You should get -01010100, or in place of the negative sign a series of 1's indicating the sign. Yet, for some reason, you don't. What kind of screwed up piece of dried-up dog crap is that? How did Bill's team manage to take a computer, something which natively speaks binary, and get it to forget how? Just to spell it out: ifThose with a Windows box, try this experiment: Open the calculator and switch to scientific. Switch the mode to binary. Now try to subtract, lets say, 111111 from 11101011. You should get -01010100, or in place of the negative sign a series of 1's indicating the sign. Yet, for some reason, you don't. What kind of screwed up piece of dried-up dog crap is that? How did Bill's team manage to take a computer, something which natively speaks binary, and get it to forget how? Just to spell it out: if you are running Windows, you are running an operating system(!) designed by programmers who can't get their system to perform mathematics! Depressing, isn't it?

I realize that KCalc displays the number with a series of ones instead of a neg sign. But hit the dec button to switch to decimal and you get a reasonable answer of -172. (63-235=-172, so this is the correct answer. Try it on a windows machine and your answer is definitely not -172 in base ten.

The calculator is not a new computing concept. Microsoft has shipped one with their OS since, what, 3.0 for sure. What a damn embarrassment for the geek community that we are creeping up on 2 decades later and they still cant get it right.

You are mistaken (0)

This comment was hidden based on your threshold setting.

Anonymous Coward | more than 10 years ago

try to subtract 111111 from 11101011.

Subtract 63 from 235.

235-63 = 172 -> b10101100

Let's do it the other way around like you think you said you did it in the first place.

63-235 = -172 -> b1111111101010100 BUT!! you forget that this is binary and so we now have to expand the number of bits we've got because once we go negative the number of bits exceeds 8. So you end up with 8 1s as the first byte, indicating that the number has indeed gone negative.

Then you take the one's complement to find that indeed MS Calc has given you the correct answer and that you are simply too dumb to have figured it out.

KCalc is fundamentally broken if it gives you signed binary values. Binary values are signless.

Slashdot Account

Need an Account?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

• b
• i
• p
• br
• a
• ol
• ul
• li
• dl
• dt
• dd
• em
• strong
• tt
• blockquote
• div
• quote
• ecode

"ecode" can be used for code snippets, for example:

``<ecode>    while(1) { do_something(); } </ecode>``
Create a Slashdot Account