Lo again and now are going to see how to convert from decimal numbers to binary, as you can see, we
have two different methods repeated finance obstruct or repeated or repeated the division by two.
Yes.
And now we're all going to start with the fine arts obstruct method, which is an easy method.
I mean, for me, I found it very easy, but personally, you choose whatever you want.
No.
As you can see that we have here an IP address that we had before and then what we are going to do,
we are going to think the first.
The first number that we have one, 65 and we are going to compare it with our first number that we
have on this table, which is 128.
Now what we are going to do, we are going to see.
Of course, we are going to start from the left side.
We are going to see if this number that we have on our IP address is it more or less or equal to that
number, which is 128.
So it has to be bigger or equal to one at 28.
So we are going to put one.
Then we are going to take 165 minus 128.
It would give us the number of.
Thirty seven, and then we are going to do the same thing, what are going to compare between 37 and
64, if 287 is bigger or equal to 64 are going to put on if if it was less, what are going to put there?
Obviously, it is less than 64.
So we are going to put eight zero, as you can see in the table.
As you see, we are going to compare it.
Then we have 37 is bigger than 32, so I'm going to put one.
And we are going to take 37 minus 32.
We are going to have far now as obviously it five, is it less than 16 less than eight?
But it is bigger are over.
Number four?
It is bigger than number four, so what are going to convert are going to put one and then.
We are going to do five minus four, which is one we are going to compare the number two, obviously
number two is bigger, the number one, so we are going to put two zero with it.
We are going to compare it with number one and we have one equals one and one minus one equals zero.
And when we have, the answer is zero with that.
So we're going own are going to fill the the empty part with zeros.
As you can see, we have our binary IP address.
And we are going to go with the same method that we did here with fifty eight and one, ninety nine
and forty three.
So we can have our binary binary IP address.
I mean, I found this solution is easier because we are going to the other ones in other methods, and
now we are going to see the division by two.
Some people find the definition by two is easier than the other one, but I used to.
I prefer the first one to us because we can calculate some subnet mask with the same ones and zeros
that would be noticeable anyway.
And you are going to write down the decimal number and continually divide it by two to give a result
and the remainder of zero.
Either zero or one.
So great.
But we should have the final equal zero.
So we are going to take 165 and divide it by two.
Since we have 165 divided right, you have 82 and the risk is one going to 82 divided by two, we're
going to have what you want and the divide is zero.
And why would they why we take a woman because we're here if we.
If we took the exact number.
The exact number of the division of 165, divided by two are going to have twenty two and a half twenty
two point five.
We don't have or a half in the binary.
We should have either one and zero if we had something like twenty two and a half, that means it is
a one.
If we added exactly that mean the rest is zero, let's complete.
So are going all right.
There is better.
There is a budget when an even number is divided by two, the remaining zero, as I said, anyway,
we are going to take 20 and divided by one.
And when the odds is no divided by the Remain is one.
And odd.
Exactly then we have to divide it by two means, then that means there remain is zero, then we're all
going to take ten divided by two.
That means equals five and the Remain is zero.
Now we are going to take five divided by two, though we'll give it two and a half.
It is an odd number.
So we are going to put two and there is one.
No, we are going to divide two on two.
That means equals one.
And the rest here is zero.
And then we are going to divide one by two and it will give us the zero.
I devoted, but what was actually zero point five with the zero A..
And that the our IP address so are going to take from the down up and it would give us our IP address
in binary.
So what are going to take from here?
This is the left to the right.
You are going to see it is mentioned in the video.
Like this way, from down to up, left to right.
We can do the same thing to the 20 to a 58 to one, 99 to 48, we are going to have the same result
as the first method.
As you can see, 50, 50, 50 divided by two.
That will give us 29.
It would give it zero.
Then we are going to keep going until we have our.
Our binary IP address.
Thank you.