|
[top.htm] |
|
|
Other Number Bases Our number system is so cool because it's based on the number 10. However, there are other bases, most notably base 2 (binary) and base 16 (hexadecimal). Both base 2 and base 16 are used in computers and computer science! Base 10 (decimal) First of all, we have to review base 10 before we go any further. The first place is the one's place (right side of the number). The next place (to the left) is the 10's place because each place is ten times as big (10's, 100's, 1000's, etc.). You could look at it as 10 to the zero power (1), 10 to the first power (10), 10 to the second power (100), etc. It's called base 10 because 10 is the base and then each place is a higher (or lower) power of 10. 1,000,000 100,000 10,000 1,000 100 10 1
106 105
104 103
102 101 100 Base 2 (binary) 64 32 16 8 4 2 1 Instead of having a 10's place, we have a 2's place (kind of weird, huh?) Now we have to worry about digits. In base ten, there are 10 individual digits we may use in one place (0, 1, 2, 3, 4, 5, 6, 7, 8, 9). If we want to go over 9, then we have to use TWO digits (10). In base 2, there are only two digits we may use (0, 1). If we want to represent 2, we have to go over to the next place. 10 (base 2) = 2 because the 1 is in the 2's place (2) and the 0 is in the 1's place (0). 1010 (base 2) = 10 because the
first 1 (on the left) is in the 8's place, the other 1 is Base 16 (hexadecimal) The first place is still the one's place, and each place is sixteen times as big as the preceding place. ... 4,096 256 16 1
Thus AA (base 16) = 10 * 16 + 10 * 1, or 170. Base prime One of the more unusual ideas along these lines is base prime. As expected, each place is a prime number. Please remember that 1 is neither prime nor composite! ... 17 13 11 7 5 3 2 Unlike all of these other bases, this
system is based on the prime factorization of the number. (last updated October 2, 2007) |