Hello, Siberians. I'm Kelly Hander Han and welcome to session Wednesday. This week we're gonna be discussing decimal toe binary Hexi decimal conversion. And this will be very helpful for you in various ways.
When we go into the topic next week about submitting, it's very helpful to know binary beforehand because binary plays a really big part of how we split up our networks,
but also with I p V six on the horizon. Hexi decimal is gonna be important as well. So we're gonna cover all three of those.
All right, so let's go back and let's talk a little bit about how we learned decimal, right? So if you go back, if you learn the way I did, teacher would come in and write 4000
and she'd say, OK, this is the Ones column. This is the tens column hundreds column,
and this is the thousands
So we have the reason we use this. Columns were based on 10.
So this one's column
10 to the zero power.
Anything to the zero power is one, eh? So we start with a zero power one, then this is 10 to the first into the second,
10 to the third and so on. So that's where I get my columns. And then she'd say, Well, this has 41 thousand's 51 hundred's, seven tens and nine ones. It's how we learn decibels. Okay, so we're gonna learn binary much the same way we learned, decimal.
So we're gonna start with 2 to 0 power, which is one
through the 1st 2 to the second
And to do the seventh is 1 28 Now, if you'll notice. 12345678 Placeholders. The reason we're stopping there is eight bits are in a bite. So we're gonna talk about numbers and how we express them using one byte of data.
All right, so let's pick a number between one and 2 51 to 55.
All right, so the way we convert this decimal number two binary,
we've got to look at the two values with binary
and that the way to think about this Course in computers were looking at on off or presence of signal. Absence of signals. But for our purposes, would you say nowhere? Yes. All right. So we'll 1 28
Momentary brain freeze there. All right, so 1 28 all fit. So what we have to do is account for it Will subtract it out.
11 months. Three. That's too. Okay, so it'll fit once with the remainder of 83.
Well, 64 fit in the 83. Yes, it will.
We can't afford out subtracted.
Well, 30 to fit in the 19. No,
tracked out. We get three left. Eight won't fit into 34 won't fit into three to will
the remainder one and one will. So the number 2 11 and decimal is expressed as 1101
So ultimately, what we're going through left to right. Well, this value fit inside my decimal number. If so, the values one and then we account for it. If it won't been in, we use heroes. Now going back to decimal is just a Z Z. If I pay just making up a number here,
they just making up a binary number and we just take it, draw her columns
and then we add among the ones column two or
All right, so 64 plus 32 is 96.
We're at eight to that. Bringing us up to 102
Math in front of strangers. Not easy.
Ah 1081 of nine. So that's the value in decibels. So going back and forth between decimal and by end, binary really isn't that bad as long as you understand the concept.
Now, the next thing we want to do is we want to take this another step and we want ad Hexi decimal into the mix because, like I said, I p version six is gonna be using Hexi decimal Mac addresses. You texted decimal. So it's always good to know that additional step.
Okay, now taking by Neary Toe Hex
is pretty easy. Taking decimal the hex is much harder.
So what I recommend for you is if you want to take decimal Hexi decimal
running through binary first.
Okay, so convert your decimal into binary and then binary into decibel. Okay, so I'm gonna show you. Let's just look at this value.
up here on the board.
Okay? So, 1 28 with 64. That's 1 92
1 10 1 11 to 11. All right, so we said that's the number to 11. So, to 11 if we translated into binary, that's what we get. Now, the thing to understand about Hex A desk.
Hexi Decimal is based on 16 as its number insisted.
So what we have to look at with hexes. The numbering system contains any of these valid numbers.
123456789 10 11 12 13 14 50.
I have zero in there too, is about you. All right. So our choices are
from 0 to 9 and then a B C d e f.
So what we want to do is when you've got a number in binary,
let's just bring this out.
What we do is we take this bite
and split it into what we call nibbles. A nibble is half a bite.
I don't make that up. It really is.
And then we work with just these four bids at a time.
Okay, So if we were looking at this standard in binary, this would be the Ones column. The twos, the force and the ace.
So what this value is two plus one would be represented as a three.
Then we go over this side. 1248
eight plus fours. 12. We don't have a 12 but what we do, we have That would be like 10 11 12. So value is see if that makes sense. You know, we're so used to decimal. It's a little bit odd to go, you know, 789 A. But,
you know, in binary be represented his 10 11 12 13 14.
So when we look at the number 2 11 in decimal,
we run it through binary, and we get 1101011 Then we split that up into two sections. Evaluate each section independently, and for the value of 2 11
we now get the hex a decimal value of C three.
So I hope this has been helpful with for you. You may want to practice up a little bit. Windows has a scientific calculator that you can use to sort of test to make sure your calculations air. Good. One thing that this will be particularly helpful for when we go into the next section on sub netting, which will be covered in a later sessions.
Really helpful to know binary
and no decimal conversion from binary decibel. That'll be used to a degree. So I hope this helps you feel free to comment on your experiences here and again. I hope this teaches you a little bit of something about decimal binary binary.