The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
Anyways, I found that weird / interesting. How can 0 be negative?
This can occur when an operation underflows. If you have for example two very small number where one is negative and multiply them, the result can underflow and will be set to zero but the sign bit is preserved.
Dear Mr. Zero (or is it Mrs. Zero, there is some ambiguity here!),
I'm sorry, I had no intention of being n-aught-y. In fact, you are very important! Without you, nothing could not be expressed mathematically. You fulfill a central role in mathematics as the additive identity of the integers, real numbers, and many other algebraic structures.
And besides, you are at least 3756 years old, and in ancient Egypt you were given a designation that means "beautiful", which is much better than what the Babylonian's did, which was to represent you with a space, a blank, a nothing!
Of course, the Greeks weren't sure about you -- how could nothing be something!
Well, I know that you are something indeed, and certainly, based on your age, much wiser than I.
The sign of 0? I thought everyone knew that was positive because of twos complement math. Of course, with IEEE floating point, -0.0 is representable, but allowing it would be inconsistent, and very, very confusing.
We can program with only 1's, but if all you've got are zeros, you've got nothing.
Typically, one takes the ones compliment and then increment to find the inverse, so
that when the numbers added together is "0".
So the inverse of 0 is 0. This means that -0 == 0.
So, zero has the ability to have both signs.