|
|
![]() |
||||||||
![]() |
![]() |
||||||||
|
|||||||||
A Guide to Understanding Binary NumbersI'm going to explain binary numbers for a bit, because its almost imposible to explain subnets without knowing them. You can count up to any number only using zeros and ones! The number system that everyone uses is the base 10 number system. Well I'm going to show you how to count using the base 2 number system. Here is a quick example.
Alright lets step through that table a bit. I'm sure that every one understands that zero equals zero and one equals one. The thrid line gets tricky. Since we are only allowed to use two numbers we need to roll over. Just like our base 10 number system does once we go beyond the number 9. So for the number two we write a 10 in the base 2 number system. Here is a simple comparison.
The value of the number column always multiply by the base number just like in the base 10 number
system. In base 10 the ones column is for ones. Then you have the ten's column which is 1 * 10 so it equals 10. Next is the 100's column, which is
1 * 10 * 10 which equals 100, and so on and so forth. Well you've got the same thing going on in the base 2 number system. Instead of multipling by 10,
you are multiplying by 2. So in the ones column you have ones. In the next column you have 1 * 2 equals twos. Next you have 1 * 2 * 2 which is
fours. After that 1 * 2 * 2 * 2 which turns out to be eights.
Since we don't think in the base 2 number system, it really helps to write the columns value's of the number system above the number.
128 plus 32 plus 16 plus 2 plus 1 turns out to be 179.
So far we have only converted from a base 2 number to a base 10 number. Converting a number from base 10 to base 2 is just as easy. Instead of
adding the numbers we subtract them instead. Lets turn the number 153 into a binary number. So.. Where do we start? Well remember that the number
columns are all multiples of the number 2. So lets write our value row, until we find a number that if times 2 is more than 153. In this case
that number would be 128, because 128*2 is 256 which is more than 153. So starting at 128 lets write our values. Well thats all there is to that! |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||