Continuation from previous post: Breakdown of an IPv4 Address
What's binary and who cares? Binary is computer language made of 1s and 0s. The computer uses binary to store data and calculate various functions. A binary value can be easily converted on the web or a scientific calculator, but understanding the manual process can help it all stick. Before going into the process, it is important to understand a quick pattern/chart that will be easy to reference.
Binary developed from a Base 2 system:
Each serves as a bit and there are a total of 8bits. Also remember that 1 means the value is turned on and 0 means the value is turned off. So in the above, you will see all is 0 with the exception of the bit under 2 (2 is the value of 2 to the 1st power). So in this case, the binary value of 00000010 = 2. Easy right? Let's do more practice in the examples below:
Unlike the initial example, you will see that there are more than one of the bits turned on. In this case, there are 3 bits that = 1, so 3 bits turned on. To determine the value, you will need to add 128 + 32 + 8. In this case, 10101000 = 168.
32 + 16 = 48, therefore 0011000 = 48
128 + 16 + 8 + 4 + 2 = 158, therefore 10011110 = 158
Congratulations, it's just that simple. A Decimal to Binary be posted next week.