Give the decimal representation for the following numbers a
Give the decimal representation for the following numbers:
a. (1101010)2
b. (364)7
c. (A3)16
Solution
Solution:
(a) (1101010)2
=1×2^6 + 1×2^5 + 0x2^4 + 1×2^3 + 0x2^2 + 1×2^1 + 0x2^0
(1101010)2=106 in decimal system
(b)(364)7= 3* 72+ 6*71 + 4*70
=147+42+4
(364)7 =193 in decimal
(c)(A3)16= 10*161 +3*160 =160+3=163
(A3)16 =163 in decimal system
remember that hex A=decimal 10
