|
This sample chart shows the decimal value of
each bit. Remember there are 8 bits in a byte, and binary is just seen as
1s and 0s. Keeping this in mind when converting to binary simply look at
where the digits are placed and if there is a 1 in the place you add the
number value. Binary is simple addition. For example if you had the
following binary number:
01111001= 0+64+32+16+8+0+0+1=
121
How did we got 121? Referring back to the
chart there was a 0 in the 128 spot so there is no value, there was a 1 in
the 64 spot so the value was 64, there was a 1 in the 32 spot so the value
was 32, there was a 1 in the 16 spot so the value was 16, there was a 1 in
the 8 spot so the value was 8, there was a 0 in the 4 spot so the value
was 0, there was a 0 in the 2 spot so the value was 0, there was a 1 in
the 1 spot so the value was 1. Now that you have the hang of it lets
convert the following binary to decimal values and decimal to binary
values:
01111000 00000001 00000011
11110000=120.1.3.240
11000011 01010101 10011001
11010010=195.85.153.210
207.199.32.205=11001111.11000111.00100000.11001101
151.2.254.60=10010111.00000010.11111110.00111100
Did you get what I got? If not, refer back to
the previous examples. If you did great, continue with the networking
fundamentals tutorial. |