Math Fundamentals18 sections · 814 units
Open in Course

Binary to Decimal Conversion

Reading binary numbers

To convert binary to decimal, multiply each digit by its position value (power of 2) and sum the results.

Example: Convert 11010211010_2 to decimal. From right to left, positions are 20,21,22,23,242^0, 2^1, 2^2, 2^3, 2^4 which equal 1,2,4,8,161, 2, 4, 8, 16. So 110102=0(1)+1(2)+0(4)+1(8)+1(16)=261011010_2 = 0(1) + 1(2) + 0(4) + 1(8) + 1(16) = 26_{10}.

A quick trick: memorize powers of 2 up to 210=10242^{10} = 1024. Then you can read binary at a glance. 10000000210000000_2 is 128128. 11111111211111111_2 is 255255. You will use these values constantly in programming.