Binary+to+Decimal

How to convert from binary to decimal Dan Schellenberg

Recall: Columns in binary represent successive powers of 2. To obtain the decimal value of a binary number, simply take the sum of all of the column values that contain a 1. The binary number 1011 has column values as follows:

Binary Number: 1 0 1 1

Column Values: 2^3 2^2 2^1 2^0 (as powers of 2)

Column Values: 8 4 2 1 (as decimal values)

Convert to decimal: 8 + 0 + 2 + 1 = 11

A second example: (convert binary number 11001 to decimal)

Binary Number: 1 1 0 0 1

Column Values: 2^4 2^3 2^2 2^1 2^0 (as powers of 2)

Column Values: 16 8 4 2 1 (as decimal values)

Convert to decimal: 16 + 8 + 0 + 0 + 1 = 25