Professional Documents
Culture Documents
1s complement: 11001110
Taking the 1s complement,
1s complement: 11100110
Increment by 1
2s complement: 11100111 => -2510
A.A.H Ab-Rahman January 2009 7
2s Complement (cont.)
Given 1100 1110 in 2s complement, how
to find its equivalent decimal?
2s complement: 11001110
1s complement: 00110001
Increment by 1
Therefore, 1 1 0 0 1 1 1 0 is -5010
A.A.H Ab-Rahman January 2009 8
2s Complement (cont.)
Find the equivalent decimal of the following
2s complement binary:
0010 1101 => 25 + 23 + 22 + 20 => 45
1111 0101 => 0000 1011 => -(23 + 21 + 20) => -11
Find the equivalent 2s complement binary of
the following decimal:
13210 => 27 + 22 => 0 1000 0100
-8410 => -(26 + 24 + 22 ) => -(0101 0100) => 1010 1100
Discard carry
A.A.H Ab-Rahman January 2009 16