Computer Science
Convert the following binary number to its decimal equivalent:
(1010.0111)2 to ( )10
Number System
8 Likes
Answer
Converting integral part
Binary No | Power | Value | Result |
---|---|---|---|
0 | 20 | 1 | 0x1=0 |
1 | 21 | 2 | 1x2=2 |
0 | 22 | 4 | 0x4=0 |
1 | 23 | 8 | 1x8=8 |
Converting fractional part
Binary No | Power | Value | Result |
---|---|---|---|
0 | 2-1 | 0.5 | 0x0.5=0 |
1 | 2-2 | 0.25 | 1x0.25=0.25 |
1 | 2-3 | 0.125 | 1x0.125=0.125 |
1 | 2-4 | 0.0625 | 1x0.0625=0.0625 |
Equivalent decimal number = 2 + 8 + 0.25 + 0.125 + 0.0625 = 10.4375
Therefore, (1010.0111)2 = (10.4375)10
Answered By
4 Likes