Share
Explore BrainMass

(ref7) Binary Sign Magniture

A. Convert +512 into sign/magnitude.
b. Convert -29 into sign/magnitude.
c. Convert +512 into two's complement.
d. Convert -29 into two's complement.

Solution Preview

a) Expressing +512 in 16 bit sign - magnitude

(512)10 = (1000000000)2.

Sign bit (leftmost bit) should be 0 since the number is positive.

So, the result is 0000001000000000. (We add six0's to make it 16-bit)

b) Express -29 in 8-bit sign-magnitude ...

$2.19