Hi ya's,
Here's an excercise that I am stuck on:
Task: Practice converting the following decimal values of the IP address 209.114.58.165 to the binary octet equivalent.
Explanation: Look at the Decimal value and then subtract binary values starting from 128 (the highest value binary bit). If the number is larger than 128 then put a one in the first position binary number bit status. Subtract 128 from the number and then see if there is a 64 left. If there is put a one there otherwise put a zero and see if there is a 32. Continue until all 8 bits are defined as either a zero or a one.
1. Solve the 1st , 2nd , 3rd and 4th octet Decimal value to binary bit number
Exponent 27 26 25 24 23 22 21 20
Bit Position 8 7 6 5 4 3 2 1
Value 128 64 32 16 8 4 2 1
Binary Number Bit Status
1st Octet Binary Value: ________________
Ok, so I did the following:
209 > then 128, so I put a 1
209 - 128 = 81, so I put a 1
81 - 64 = 17, so I put a 0
17 - 32 = -15, so I put a 0?
Here's where it starts to get wrong... the proper binary value of 209 is 11010001, but I`m not getting there manually.
Can anyone help?
Thanks!
Here's an excercise that I am stuck on:
Task: Practice converting the following decimal values of the IP address 209.114.58.165 to the binary octet equivalent.
Explanation: Look at the Decimal value and then subtract binary values starting from 128 (the highest value binary bit). If the number is larger than 128 then put a one in the first position binary number bit status. Subtract 128 from the number and then see if there is a 64 left. If there is put a one there otherwise put a zero and see if there is a 32. Continue until all 8 bits are defined as either a zero or a one.
1. Solve the 1st , 2nd , 3rd and 4th octet Decimal value to binary bit number
Exponent 27 26 25 24 23 22 21 20
Bit Position 8 7 6 5 4 3 2 1
Value 128 64 32 16 8 4 2 1
Binary Number Bit Status
1st Octet Binary Value: ________________
Ok, so I did the following:
209 > then 128, so I put a 1
209 - 128 = 81, so I put a 1
81 - 64 = 17, so I put a 0
17 - 32 = -15, so I put a 0?
Here's where it starts to get wrong... the proper binary value of 209 is 11010001, but I`m not getting there manually.
Can anyone help?
Thanks!