SBP-Program

f

tw

in

Convert binary number to decimal number

Convert binary number to decimal number

Method of converting binary to decimal is simple.

Binary numeral system base is two. That we will use. Multiply by two each binary digit of the binary number, and that "two" should be in the degree equal to the number of the position of the binary digits in the number.

For example, take the numbers: 1101 and 1011 and find their decimal equivalents.

Here is the table of the positions of 1101:

digit1101
position3210

1 * 23 + 1 * 22 + 0 * 21 + 1 * 20 = 8 + 4 + 0 + 1 = 13

Power of two is equal to the position number of the respective digit in the binary number.

Thus, the binary number 1101 is equal to 13 in decimal system.

Now the table of the positions of 1011:

digit1011
position3210

1 * 23 + 0 * 22 + 1 * 21 + 1 * 20 = 8 + 0 + 2 + 1 = 11

Powers of two are equal to the position numbers.

Thus, the binary number 1011 is equal to 11 in the decimal system.