Integer Representations Write the hexadecimal representation
Solution
1. 1111 1101 1011 1001 0111 1010 0011 00012
= F D B 9 7 A 3 1
2. 0000 0000 0000 0000 0000 0000 0000 00112
= 20 + 21 = 1 + 2 = 310.
3. 0000 0000 0000 0000 0000 0000 0000 00112
1\'s complement of this number is: 1111 1111 1111 1111 1111 1111 1111 1100.
And adding 1 to this will make it 2\'s complement of the original number.
Therefore, 2\'s complement of the original number is: 1111 1111 1111 1111 1111 1111 1111 1101.
As, the Most Significant Bit is 1, which means, its a negative number.
Therefore, the number is: 20 + 22 + 23 + 24 + ... + 230 = -214748364510.
4. 1111 1111 1111 1111 1111 1111 1111 11112
1\'s complement of this number is: 0000 0000 0000 0000 0000 0000 0000 0000.
And adding 1 to this will make it 2\'s complement of the original number.
Therefore, 2\'s complement of the original number is: 0000 0000 0000 0000 0000 0000 0000 0001.
As, the Most Significant Bit is 0, which means, its a positive number.
Therefore, the number is: 20 = 110.
