October 06, 2018 -
CCNA Skills,Subnetting
No comments
IPv4 Subnetting: Decimal to Binary Conversion:: Subtraction Method
Subtraction (Long Method)
Procedure: The given number (n) is repetitively subtracted by the constant value of binary bit position. If the result of operation is less than zero (0) skip to the next constant bit value until it reaches zero(0).
Rule: If the given number (n) subtracted by the constant bit position value of binary equals to positive number, set the bit position to one(1) else one (0). To write the equivalent binary number you start from top to bottom. Use the constant bit position value to solve it quickly.
128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | ||||||
217 | - | 128 | = | 89 | 1 | 1 | |||||||
89 | - | 64 | = | 25 | 1 | 1 | |||||||
25 | - | 32 | = | -7 | 0 | 0 | |||||||
25 | - | 16 | = | 9 | 1 | 1 | |||||||
9 | - | 8 | = | 1 | 1 | 1 | |||||||
1 | - | 4 | = | -3 | 0 | 0 | |||||||
1 | - | 2 | = | -1 | 0 | 0 | |||||||
1 | - | 1 | = | 0 | 1 |
1
|
Binary Equivalent: 11011001
128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | ||||||
255 | - | 128 | = | 127 | 1 | 1 | |||||||
127 | - | 64 | = | 63 | 1 | 1 | |||||||
63 | - | 32 | = | 31 | 1 | 1 | |||||||
31 | - | 16 | = | 15 | 1 | 1 | |||||||
15 | - | 8 | = | 7 | 1 | 1 | |||||||
7 | - | 4 | = | 3 | 1 | 1 | |||||||
3 | - | 2 | = | 1 | 1 | 1 | |||||||
1 | - | 1 | = | 0 | 1 |
1
|
0 comments:
Post a Comment
If possible, leave a positive comment. No hate speech or elicit comments. Thank you.