Converting from binary to decimal format

There may be a time when conversion from a binary number to a decimal number is needed. In order to convert a binary number to a decimal number each position in a decimal number can be represented by two to the power of that position place minus one. Counting in computers start with 0. For example a binary number 1001 can be represented as decimal number 9. It is 2 to the power of 3, plus 0 to the power of 2, plus zero to the power of 1, plus  2 to the power of 0. It results in 8 + 0 + 0 + 1 or 9.

YouTube video

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator