Raj wants to convert binary number to decimal number system. Binary number system is a
base 2 number system. It uses only 2 symbols to represent all its numbers i.e. 0 and 1
Build an algorithm for this conversion
Answers
Answered by
5
Explanation:
Example Binary number 1101011
Now we will convert the given binary number into decimal using the exponent power of 2 starting from 0 (till number of digits in given binary number)
(1*2^6)+(1*2^5)+(0*2^4)+(1*2^3)+(0*2^2)+(1*2^1)+(1*2^0)
=64+32+0+8+0+2+1
=107
Answered by
6
Answer:
Algorithm for Converting Binary Number into Decimal Number System:
START
1. (1*2^6) + (1*2^5) + (0*2^4) + (1*2^3) + (0*2^2) + (1*2^1) + (0*2^1)
2. 64 + 32 + 0 + 8 + 0 + 2 + 0
3. 106
END
Explanation:
Multiply each digit with its place
For Example 1101010
1 1 0 1 0 1 0
| | | | | | |
6 5 4 3 2 1 0
Similar questions