Binary Counting ("Base 2") Computers do not count with the same counting system we use. Humans have ten fingers, so we use a base-10 counting system--that is, 10 digits. A "digit" is a single-character number; the ten digits are 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. Computers use switches to keep information. A switch can be off or on. On is 1; off is 0. SO computers only use those two digits. One number--a 1 or a 0--is called a binary digit, or a "bit" for short. When we count, we start with a single digit, going from 0 to 9. After 9, there are no more digits. So we have to use two digits. Each digit represents a "column," as shown in the chart below. In the number "10," the "1" is in the "tens" column, and equals "1 x 10"; the "0" is in the "ones" column, and equals "0 x 1." As an example, take the number 256:
Therefore, the number "256" means that you have 2 hundreds, 5 tens, and 6 ones. Each digit has ten possibilities, so with each new digit, you multiply by ten. A 2-digit number has 100 possibile combinations. A 3-digit number has 1000 combinations, and so on. However, if you only have two numbers instead of ten, your counting has to look like this:
To write the number 7, you would write "111"--that is, 1 four, 1 two, and 1 one. To write the number 8, you would write "1000"--1 eight, and 0 fours, twos and ones. The number 256, therefore, is "10000000." Notice that the second column is the "base," and all other columns are powers of the base--base2, base3, base4, etc. Here is an example of counting from one to ten in binary:
Each digit has two possibilities, so with each new digit, you multiply by two. For example, a 2-digit binary number has four possible combinations (00,01,10, and 11). A 3-digit number has eight combinations; a 4-digit number has 16 combinations, and so on. |