When working with binary number, you will often have to convert binary number to decimal number. There is not multiples ways of converting a binary number to a decimal number. Each digits has a weight (or value if you prefer) as seen in previous lessons. You will need to add together the weight value of each digits in the binary number with a value of “1” to get the decimal value. From previous lessons, we have the figure below which shows the place value of the seven first digits :

The weight value of each digits is 2 exponents its position minus 1 (like shown below on Figure 2). The first digit on the right is in position 1 which means it is worth 2 exponent 0 since it is position 1 minus 1 which gives us 0. The last digit on the left is in the seventh position which means its weight is 2 exponent 6 or (7 – 1). The first digit position is always on the right for a binary integer. The weight of this first digit of an integer binary number will always be 1. Do note, a digit always has a weight value that is worth two times the one on its right.

So for example, if we have the binary number “1001”. To calculate the decimal value of this binary number, we need to add together the weight of each digits that is a “1” in the binary number.

This binary number is the decimal number “9”.

### Example 1 :

We have the binary number “110101” that we want to convert to a decimal number. We need to add together the weight of each digits that is a “1” in the binary number.

This binary number is the decimal number “53”.

### Example 2 :

We have the binary number “11101” that we want to convert to a decimal number. We need to add together the weight of each digits that is a “1” in the binary number.

This binary number is the decimal number “29”.

It doesn’t get more complicated than that. If you have more digits, you will have a longer formula to calculate the decimal value of a binary number but that’s about it. Do note that we only worked with binary/decimal integer number. We will work with floating point number in a later chapter as most of the basics circuits in electronics don’t work with floating point number.

You have completed this lesson, you can now convert binary integer number to a decimal number using the sum of weights. In the next lessons, we will see more examples of how to convert binary numbers to decimal number and vice versa. The lessons after will be a cheat sheets and exercises for this chapter.