Computer Science
Convert the following binary numbers to decimal :
(a) 1100
(b) 10010101
(c) 11011100
Number System
28 Likes
Answer
(a) 1100
| Binary No | Power | Value | Result | 
|---|---|---|---|
| 0 (LSB) | 20 | 1 | 0x1=0 | 
| 0 | 21 | 2 | 0x2=0 | 
| 1 | 22 | 4 | 1x4=4 | 
| 1 (MSB) | 23 | 8 | 1x8=8 | 
Equivalent decimal number = 4 + 8 = 12
Therefore, (1100)2 = (12)10
(b) 10010101
| Binary No | Power | Value | Result | 
|---|---|---|---|
| 1 (LSB) | 20 | 1 | 1x1=1 | 
| 0 | 21 | 2 | 0x2=0 | 
| 1 | 22 | 4 | 1x4=4 | 
| 0 | 23 | 8 | 0x8=0 | 
| 1 | 24 | 16 | 1x16=16 | 
| 0 | 25 | 32 | 0x32=0 | 
| 0 | 26 | 64 | 0x64=0 | 
| 1 (MSB) | 27 | 128 | 1x128=128 | 
Equivalent decimal number = 1 + 4 + 16 + 128 = 149
Therefore, (10010101)2 = (149)10
(c) 11011100
| Binary No | Power | Value | Result | 
|---|---|---|---|
| 0 (LSB) | 20 | 1 | 0x1=0 | 
| 0 | 21 | 2 | 0x2=0 | 
| 1 | 22 | 4 | 1x4=4 | 
| 1 | 23 | 8 | 1x8=8 | 
| 1 | 24 | 16 | 1x16=16 | 
| 0 | 25 | 32 | 0x32=0 | 
| 1 | 26 | 64 | 1x64=64 | 
| 1 (MSB) | 27 | 128 | 1x128=128 | 
Equivalent decimal number = 4 + 8 + 16 + 64 + 128 = 220
Therefore, (11011100)2 = (220)10
Answered By
5 Likes
Related Questions
- What is the difference between fixed length and variable length encoding schemes ? 
- Convert the following binary numbers to decimal: - (a) 1101 - (b) 111010 - (c) 101011111 
- Convert the following decimal numbers to binary: - (a) 23 - (b) 100 - (c) 145 - (d) 0.25 
- Convert the following decimal numbers to binary: - (a) 19 - (b) 122 - (c) 161 - (d) 0.675