Вы находитесь на странице: 1из 4

Sign & Magnitude

Sign & Magnitude


-this is a simply and easy system.
-the left most bit is used as the sign bit. All the other numbers
represent the magnitude of the number.
-where we use 8 bits in total, 7 bits will be used to store the
magnitude of the number.
45 = 00101101

Sign bit Magnitude

So we add the 0 to make it 8 bits. 0 is used to indicate a positive number and 1 is


used to represent a negative number. Therefore -45 is 10101101

Rules for Sign & Magnitude


1.Write down the binary for the magnitude as a positive number using the bits
2. Change the sign bit .
from 0 to 1
1100100010 =290 this number would be a -290

PV Sign 256 128 64 32 16 8 4 2 1


BV 1 1 0 0 1 0 0 0 1 0

256+32+2= -290

The fact that the sign is 1 therefore means that the decimal is negative

Find the Sign and


Magnitude for

0001110101

Вам также может понравиться