Saturday, 6 October 2018

October 06, 2018 - , No comments

IPv4 Subnetting: Decimal to Binary Conversion

Division Method

255 = 128 64 32 16 8 4 2 1
11111111 = 1 1 1 1 1 1 1 1

Recall that in subnetting, the maximum value of a subnet in every octet is 255. Our maximum number here for each octet is 255.

There were 3 arithmetic operations that allow us to convert decimal (considering the maximum number value of 255) to binary.

Given the value of 224



Procedure: The given number (n) is repetitively divided by the base value of binary which is two (2) until the value of n reaches zero(0).

Rule: If the remainder of given number (n) divided by the base value of binary which is two (2) equals to whole number, set the bit position to zero(0) else one (1). To write the equivalent binary number you start from bottom to top.

225 224
225/2 1 224/2 0
112.5/2 1 112/2 0
56.25/2 1 56/2 0
28.13/2 1 28/2 0
14.06/2 1 14/2 0
7.03/2 1 7/2 1
3.51/2 1 3.5/2 1
1.75/2 1 1.75/2 1
 Binary: 11111111                Binary: 11100000

0 comments:

Post a Comment

If possible, leave a positive comment. No hate speech or elicit comments. Thank you.