Also known
as negative number conversion.
-
It
includes 2 steps :
i)
1st
complement : 0 change to 1 / 1 change to
0
ii)
2nd
complement : add 1 to the 1st complement
Example :
11310 – 1710 =
Solution :
i) convert it to binary
11310 =
11100012
1710 =
100012
ii) 11310 + (- 1710) =
Decimal
|
Binary
|
|
Solution
|
113
|
01110001
|
|
01110001
|
17
|
00010001
|
1st complement
|
11101110
|
-17
|
|
2nd complement
|
11101111
|
iii) 011100012
+
111011112
011000002
0 comments:
Post a Comment