How to convert binary to decimal
Conversion Binary to Decimal
To convert binary digits into decimal, multiplying the value of its digits by multiplying it by local value
example: - Change 10101 (2) to Decimal.
No 1 0 1 0
Local values 24 23 22 21 20
10101 (2) = (1 × 24) + (0x23) + (1 × 22) + (0x21) + (1 × 20)
= (1 × 16) + (0x8) + (1 × 4) + (0x2) + (1 × 1) = 16 + 0 + 4 + 0 + 1 = 21 (10)
Binary index of decimal points
| Decimal | Binary |
| 0 | 0 |
| 1 | 1 |
| 2 | 10 |
| 3 | 11 |
| 4 | 100 |
| 5 | 101 |
| 6 | 110 |
| 7 | 111 |
| 8 | 1000 |
| 9 | 1001 |
| 10 |
1010
|
Conversion of Decimal Fraction to Binary Fraction)
Multiply the decimal fraction by 2. In the product, the whole number is written separately which is the left digit of the binary fraction (MSD). Multiply the fraction by 2 and repeat it until the different zeros are completed or the necessary digits of binary fraction are completed.
The final integer is the right digit (LSD) of binary fraction. After the decimal, the binary fraction is written from top to bottom
Example: Change 0.8125 (10) to binary
0.8125 x 2 = 1.625 = 1 (MSD)
0.625 x 2 = 1.250 = 1
0.250 x 2 = 0.500 = 0
0.500 x 2 = 1.000 = 1 (LSD)
So 0.8125 (10) = 0.1101 (2)


