uscitizen
Villified User
Negative numbers are represented in Binary by putting the - sign in front of them.
You use a "sign bit"...
Here is a nice chart for you:
0 1 1 1 1 1 1 1 = 127
0 0 0 0 0 0 1 0 = 2
0 0 0 0 0 0 0 1 = 1
0 0 0 0 0 0 0 0 = 0
1 1 1 1 1 1 1 1 = −1
1 1 1 1 1 1 1 0 = −2
1 0 0 0 0 0 0 1 = −127
1 0 0 0 0 0 0 0 = −128
The first digit of each of these is the "sign bit". In binary it is possible to express odd things like -0 and other such.
Yep I was not sure if that was universal or not though.
It is dependent on computer hardware.