Convert 8but twos complement hex number 7C to decimalSolutio
Convert 8-but two\'s complement hex number 7C to decimal.
Solution
Hexadecimal representation of 2\'s complement
(7C)16 = (0111 1100 )2
its 2\'s complement = 1000 0011 +1
= 1000 0100 it is a negative number as it is in 2\'s complement form ,sign bit(leftmost) is 1
negative numbers can be represented by 2\'s complement
calculate its value 1000 0100
1\'s complement = 0111 1011
+1
2\'s complement = 0111 1100 =(124)10
adding sign number = (-124 )10
