Binary Math - CompTIA Network+ N10-009 - 1.7 — Transcript
Full transcript
- 0:02In the next part of this course, we're
- 0:03going to talk a lot about IP subnetting.
- 0:06And a big part of subnetting is the
- 0:07ability to convert between decimal and
- 0:10binary. So, I thought it would be useful
- 0:12in this video if we step through the
- 0:14fundamentals of performing binary
- 0:16calculations. Binary, of course, is a
- 0:19type of numbering that uses two
- 0:21different numbers, either a zero or a
- 0:23one. This means that there are only two
- 0:26possible options when doing mathematics
- 0:28in binary. The answer is either going to
- 0:31include a zero or it's going to include
- 0:33a one. Each one of these zeros or ones
- 0:36is referred to as a bit. And when we
- 0:39combine eight of these bits together, we
- 0:41have a byte. Occasionally, you will see
- 0:44a byte referred to as an octet to be
- 0:46sure that everyone understands that this
- 0:48is an eight-bit byte. In this video,
- 0:51we're going to perform a lot of
- 0:52calculations between binary and decimal.
- 0:55So, what we need to create is a
- 0:57conversion chart to convert between
- 0:59binary and decimal. We'll create this
- 1:01chart by starting on the right side, and
- 1:03we'll simply put the number one. Then
- 1:05we're going to double that number and
- 1:07put it to the left. So, doubling one
- 1:10makes the number two. If we double the
- 1:12number two, we have the number four. 4 *
- 1:152 is 8. 8 * 2 is 16. 16 * 2 is 32, and
- 1:19so on. This is the conversion chart that
- 1:22we will use for almost all of our
- 1:24decimal to binary conversions. We
- 1:26created this chart with eight individual
- 1:29places, but you could keep moving to the
- 1:31left with this chart and go past 128.
- 1:34We'll double it to 256. We'll double
- 1:36that to 512, and so on. You can keep
- 1:39continuing this process so that if you
- 1:42have a very large binary number, you can
- 1:44still perform the same type of
- 1:46conversion back to decimal. Let's now
- 1:48use this chart to answer this question.
- 1:51What is the binary 0000
- 1:540010
- 1:56in decimal? First, let's write down this
- 1:59value in decimal. So, it's 00000010.
- 2:04And of course, we want to know what the
- 2:06decimal equivalent is of that binary
- 2:09value. We'll then layer on top of this
- 2:11our conversion chart. So, of course, we
- 2:13start on the right side with a one, then
- 2:15two, four, eight, 16, 32, 64, and 128.
- 2:19Now, we have everything we need to
- 2:21perform this binary calculation. In each
- 2:25of these places where we have a binary
- 2:27zero, we're going to bring that zero
- 2:29down to the bottom line. In every place
- 2:31where we have a binary of one, we're
- 2:33going to take the number just above that
- 2:34and bring it down onto the bottom line.
- 2:37We're then going to add all of these
- 2:39numbers together on the bottom line. So,
- 2:410 + 0 + 0 + 0 + 0 + 0 + 2 + 0 = 2 in
- 2:48decimal. So, the answer to this question
- 2:50of converting binary 00000010
- 2:55is the same as two decimal.
- 2:59Let's do another one. What is the binary
- 3:0110000010
- 3:04in decimal? We will write down our
- 3:06binary value, and then we'll layer on
- 3:08top of that our conversion chart. Every
- 3:11place there's a zero, we're going to
- 3:12pull that down and put a zero. And every
- 3:15place there is a one, we're going to
- 3:17pull down the number just above that
- 3:19one. And you can see we only have two
- 3:20binary ones in this number, and that's
- 3:23associated with the two and associated
- 3:25with the 128. So, we'll bring down the
- 3:28128, we'll bring down the two. We add
- 3:30those together, and we've got 130 in
- 3:32decimal. So, the binary value 10000010
- 3:38is the same as 130 in decimal.
- 3:41And finally, let's do one more binary to
- 3:44decimal conversion. This binary value is
- 3:4611111111.
- 3:49We'll bring down that binary value, and
- 3:51we'll layer on top of that our
- 3:53conversion chart. And because each one
- 3:55of these spaces has a one, we're going
- 3:58to bring down all of the numbers of our
- 4:00conversion. And if we were to count 128
- 4:03+ 64 + 32 + 16 + 8 + 4 + 2 + 1, you
- 4:08would have the value up 255
- 4:11decimal. So, the conversion of 1111 1111
- 4:15in binary is the same as 255
- 4:19in decimal.
- 4:20Now, let's do the same conversion, but
- 4:23in reverse. Let's take a decimal number
- 4:25and convert it to binary. This question
- 4:28asks, "What is the decimal 154 in
- 4:31binary?" It's the same process. We're
- 4:33going to bring down our binary number,
- 4:35but of course, we don't know what that
- 4:37binary number is yet. So, we'll put some
- 4:39place marks here, and then we'll layer
- 4:41on top of this our conversion chart.
- 4:44Now, we need to determine which one of
- 4:46these binary values will be a zero and
- 4:48which one will be a one to make up 154
- 4:53decimal. And there is only one
- 4:54combination of zeros and ones in this
- 4:57chart that would equal that decimal
- 4:59value. We'll start on the right side,
- 5:01where we have our 128 column, and we'll
- 5:04ask ourselves, "Is 128 less than or
- 5:07equal to 154?" This is obviously less
- 5:11than 154, so we'll put a one in that
- 5:14column, and we'll bring down the 128.
- 5:17Now, let's look at our next column of
- 5:1964, and we'll combine that next column
- 5:22with the numbers that we've currently
- 5:23brought down previously. In this case,
- 5:25the number 128. So, 128 + 64 is 192.
- 5:32And we have to ask ourselves, "Is 192
- 5:34less than or equal to 154?" In this
- 5:37case, 192 is more than 154, so the
- 5:41answer is no, and we'll put a zero in
- 5:43that column. Now, we move to the next
- 5:45column, which is our 32. We'll add 32
- 5:48plus anything that we brought down. That
- 5:50would be 128 + 32, which equals 160. Is
- 5:54160 less than or equal to 154? It is
- 5:57not, so we'll bring down a zero in that
- 6:00column.
- 6:01We'll continue with this process by
- 6:02looking at the fourth column, which is
- 6:0416. We'll add that to anything that we
- 6:06brought down. So, 128 + 16 is 144.
- 6:11Is 144 less than or equal to 154? It is,
- 6:15so we'll put a one in that column and
- 6:17bring down the 16. Our next column is
- 6:19the eight, so we'll add eight to
- 6:21anything that we've previously brought
- 6:23down. So, 128 + 16 + 8 is 152. Is 152
- 6:29less than or equal to 154? It is, so
- 6:31we'll put a one in that column and bring
- 6:33down the number eight. Our next column
- 6:35is the number four. We will add four to
- 6:37everything that we brought down into
- 6:39that bottom row. So, that all adds up to
- 6:42156.
- 6:44And is 156 less than or equal to 154? It
- 6:48is not, so we'll put a zero in the four
- 6:50column. The next column is the number
- 6:52two. We'll add the number two to
- 6:54everything that we brought down so far.
- 6:56And if we add all of those up, it would
- 6:57be 154.
- 6:59Is 154 less than or equal to 154? It's
- 7:03obviously equal to 154, so we'll put a
- 7:06one in that column and bring down the
- 7:07number two. And obviously, we've hit the
- 7:10number 154, so we know that the number
- 7:12one on the last column will not be added
- 7:15to this final value. And if we add up
- 7:17everything in that last row, we see it
- 7:19does equal 154.
- 7:21And now all we have to do is look at the
- 7:23middle row to determine what the binary
- 7:25value of this is, and it would be
- 7:2710011010.
- 7:30If we look at 154 decimal, we know that
- 7:33that is exactly the same as 10011010
- 7:38in binary.
- 7:39With these eight individual bits, we can
- 7:41convert any number between 0 and 255.
- 7:45So, take any number you would like, put
- 7:47it into this particular format, and see
- 7:50if you can perform the conversion
- 7:51between binary and decimal.
- 7:54As you're increasing the number of bits
- 7:55in a binary value, you're increasing the
- 7:58total possible number of decimal
- 8:00results. For example, if you have two
- 8:02bits, there are only four possible
- 8:04outcomes: 00, 01, 10, and 11. And if you
- 8:09were to perform that conversion between
- 8:11binary and decimal, that's the same as
- 8:130, 1, 2, and 3. If you have three bits,
- 8:17then you can have eight possible
- 8:19outcomes. If you use four individual
- 8:21bits, you have up to 16 different
- 8:23options. Five bits moves you up to 32,
- 8:26six would be 64, seven bits is 128
- 8:30possible options, and if you were to
- 8:32increase the number of bits into nine
- 8:34bits, 10 bits, 11 bits, and so on, you
- 8:36would also increase the total decimal
- 8:39number. You can see that this value is
- 8:41listed in this chart, and notice that
- 8:44I've also added the powers of two on top
- 8:47of this. This is effectively what we've
- 8:49been doing the whole time. Two to the
- 8:51zero power is one, two to the first
- 8:53power is two, two to the second power is
- 8:55four, two to the third power is eight,
- 8:57and so on. So, as we increase this
- 9:00powers of two, we are also increasing
- 9:02the total decimal value.
About this transcript
This page contains the full transcript of Binary Math - CompTIA Network+ N10-009 - 1.7 by Professor Messer, generated from the public captions YouTube serves with the video. The transcript has 1,556 words across 214 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.