The decimal number system is represented by the digit 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. It consists ten digits and hence the base of the system is 10. Their base is increased by the factor of 10. On the other hand, the binary number system consists only two digits 1 and 0.The base of the binary number system is 2, and it is increased by the factor of two. The first digit has 20 weights, the second has 21 weights, the weight of the third digit is 22 and so on. Consider a decimal number 3285 it can be written as
3285 = 3000 + 200 + 80 + 5
3285 = 3(103) + 2(102) + 8(101) + 5(100)
Thus the decimal number system is an example of positional notation where each digit position has a weight in terms of powers of ten. Similarly, in the binary number system each digit position has a weight regarding powers of two. Some of the examples of a binary digit are shown in the example.
In binary to decimal conversion when there is one in a digit position of a binary number, then the weight of the position is added. But when there is the zero in a binary position the weight of the position is disregarded.
Considered the conversion of the binary number 10101 into its equivalent decimal numbers
Binary to Decimal Conversion for Fractional Number
For a fractional number, the weights of the digit position to the right of binary point are given by 2-1, 2-2, 2-3, 2-4… etc. Consider the conversion of a fractional binary number.0101 into its equivalent decimal numbers.
Binary to Decimal Conversion For Mixed Number
The number with an integer and fractional part are called mixed number.The weight for a mixed number can be written as