Sign and Magnitude

?

With n bits, one way of representing a signed number is to use the most-significant bit (MSB) to indicate the sign of the number, as convention, 0 for positive and 1 for negative, and the remaining bits to represent the magnitude (i.e. value) of the number. Example:  with a byte (8 bits)

  +1510 =

  -1510 =

The value of a number can thus be decided by:

  (-

Comments

No comments have yet been made