Quote:
Originally Posted by Michael Hill
OOH! so a number 8 bits long will indicate if it is negative or positive by the left-most bit? so by default a number is 8 bits?
|
In essence yes.
For a one byte field the value can be 0-255 if unsigned, or between -127 to +127 if signed.
255 = 1111 1111 (unsigned)
127 = 0111 1111 (unsigned)
-127 = 1111 1111 (signed)
+127 = 0111 1111 (signed)
Again it is about how your code wishes to deal with the field as a signed or unsigned value.