Professional Documents
Culture Documents
In Binary, Subtraction is not done directly it is done by taking a MINUS sign for a positive
number.
-124 :-
Sign bit 7 -bits
NA 1 0 0 0 0 1 0 0
-99 :-
Sign bit 7 -bits
NA 1 0 0 1 1 1 0 1
-124 :-
0 6
Sign bit 7 -bits
i a 0
NA 1 0 0
o
0
n 0 1 0 0
l p o
ni
Simple trick to convert any binary value to its signed 2’s complement notation is Check for the
first one (i.e. 1) in the magnitude of the number from Right to Left when you find it, Keep the
and vice-verse.
-99 :-
Sign bit
u
number unchanged till one (i.e. 1) and remaining number reverse it by changing value from 0 to 1
s 7 -bits
NA 1 0 0 1 1 1 0 1
-124 :-
NA 1 0 0 0 0 1 0 0
-223 :-
Carry bit
NA 1 0 0 1 0 0 0 0 1