There is a code such as 1010 that shows how binary works. The process of changing binary to decimal is quite simple. It goes as follows.
The binary system includes two numbers, 0 and 1. There is also the place value, which is similar to the decimal place value. But there is one difference – binary counts in twos, so starting from the right hand side the value increases as 1, 2, 4, 8, 16, etc.
To change, we have to take digits from right to left. When we see 1, we must add the place value. In case of 0, we skip it. In case of 1010, we start from right hand side: 1, 0, 1, 0. We must add 8 and 2, and get 10.
It is also possible to use special programs or calculators that will do the job automatically.
To sum up, conversion of binary to decimal consists of counting place values of all digits of 1.
FileSenix