Quote:
Originally Posted by ownedbycats
|
This might be helpful:
Negative Binary Numbers. Two of the three representations, sign-and-magnitude and ones-complement, can represent negative zero. Twos-complement, the most common, cannot represent negative zero.
The above discussion leaves out the complexity of floating point numbers that usually have three separate components: a sign, a "value", and an "exponent". Because (usually) the sign is separate from the number is it similar to sign-and-magnitude representation. See
https://floating-point-gui.de/formats/fp/ for more explanation.