YouTube2Text

Binary Math - CompTIA Network+ N10-009 - 1.7 — Transcript

by Professor Messer · 1,556 words · 214 segments · language en · Watch on YouTube

Full transcript

  1. 0:02In the next part of this course, we're
  2. 0:03going to talk a lot about IP subnetting.
  3. 0:06And a big part of subnetting is the
  4. 0:07ability to convert between decimal and
  5. 0:10binary. So, I thought it would be useful
  6. 0:12in this video if we step through the
  7. 0:14fundamentals of performing binary
  8. 0:16calculations. Binary, of course, is a
  9. 0:19type of numbering that uses two
  10. 0:21different numbers, either a zero or a
  11. 0:23one. This means that there are only two
  12. 0:26possible options when doing mathematics
  13. 0:28in binary. The answer is either going to
  14. 0:31include a zero or it's going to include
  15. 0:33a one. Each one of these zeros or ones
  16. 0:36is referred to as a bit. And when we
  17. 0:39combine eight of these bits together, we
  18. 0:41have a byte. Occasionally, you will see
  19. 0:44a byte referred to as an octet to be
  20. 0:46sure that everyone understands that this
  21. 0:48is an eight-bit byte. In this video,
  22. 0:51we're going to perform a lot of
  23. 0:52calculations between binary and decimal.
  24. 0:55So, what we need to create is a
  25. 0:57conversion chart to convert between
  26. 0:59binary and decimal. We'll create this
  27. 1:01chart by starting on the right side, and
  28. 1:03we'll simply put the number one. Then
  29. 1:05we're going to double that number and
  30. 1:07put it to the left. So, doubling one
  31. 1:10makes the number two. If we double the
  32. 1:12number two, we have the number four. 4 *
  33. 1:152 is 8. 8 * 2 is 16. 16 * 2 is 32, and
  34. 1:19so on. This is the conversion chart that
  35. 1:22we will use for almost all of our
  36. 1:24decimal to binary conversions. We
  37. 1:26created this chart with eight individual
  38. 1:29places, but you could keep moving to the
  39. 1:31left with this chart and go past 128.
  40. 1:34We'll double it to 256. We'll double
  41. 1:36that to 512, and so on. You can keep
  42. 1:39continuing this process so that if you
  43. 1:42have a very large binary number, you can
  44. 1:44still perform the same type of
  45. 1:46conversion back to decimal. Let's now
  46. 1:48use this chart to answer this question.
  47. 1:51What is the binary 0000
  48. 1:540010
  49. 1:56in decimal? First, let's write down this
  50. 1:59value in decimal. So, it's 00000010.
  51. 2:04And of course, we want to know what the
  52. 2:06decimal equivalent is of that binary
  53. 2:09value. We'll then layer on top of this
  54. 2:11our conversion chart. So, of course, we
  55. 2:13start on the right side with a one, then
  56. 2:15two, four, eight, 16, 32, 64, and 128.
  57. 2:19Now, we have everything we need to
  58. 2:21perform this binary calculation. In each
  59. 2:25of these places where we have a binary
  60. 2:27zero, we're going to bring that zero
  61. 2:29down to the bottom line. In every place
  62. 2:31where we have a binary of one, we're
  63. 2:33going to take the number just above that
  64. 2:34and bring it down onto the bottom line.
  65. 2:37We're then going to add all of these
  66. 2:39numbers together on the bottom line. So,
  67. 2:410 + 0 + 0 + 0 + 0 + 0 + 2 + 0 = 2 in
  68. 2:48decimal. So, the answer to this question
  69. 2:50of converting binary 00000010
  70. 2:55is the same as two decimal.
  71. 2:59Let's do another one. What is the binary
  72. 3:0110000010
  73. 3:04in decimal? We will write down our
  74. 3:06binary value, and then we'll layer on
  75. 3:08top of that our conversion chart. Every
  76. 3:11place there's a zero, we're going to
  77. 3:12pull that down and put a zero. And every
  78. 3:15place there is a one, we're going to
  79. 3:17pull down the number just above that
  80. 3:19one. And you can see we only have two
  81. 3:20binary ones in this number, and that's
  82. 3:23associated with the two and associated
  83. 3:25with the 128. So, we'll bring down the
  84. 3:28128, we'll bring down the two. We add
  85. 3:30those together, and we've got 130 in
  86. 3:32decimal. So, the binary value 10000010
  87. 3:38is the same as 130 in decimal.
  88. 3:41And finally, let's do one more binary to
  89. 3:44decimal conversion. This binary value is
  90. 3:4611111111.
  91. 3:49We'll bring down that binary value, and
  92. 3:51we'll layer on top of that our
  93. 3:53conversion chart. And because each one
  94. 3:55of these spaces has a one, we're going
  95. 3:58to bring down all of the numbers of our
  96. 4:00conversion. And if we were to count 128
  97. 4:03+ 64 + 32 + 16 + 8 + 4 + 2 + 1, you
  98. 4:08would have the value up 255
  99. 4:11decimal. So, the conversion of 1111 1111
  100. 4:15in binary is the same as 255
  101. 4:19in decimal.
  102. 4:20Now, let's do the same conversion, but
  103. 4:23in reverse. Let's take a decimal number
  104. 4:25and convert it to binary. This question
  105. 4:28asks, "What is the decimal 154 in
  106. 4:31binary?" It's the same process. We're
  107. 4:33going to bring down our binary number,
  108. 4:35but of course, we don't know what that
  109. 4:37binary number is yet. So, we'll put some
  110. 4:39place marks here, and then we'll layer
  111. 4:41on top of this our conversion chart.
  112. 4:44Now, we need to determine which one of
  113. 4:46these binary values will be a zero and
  114. 4:48which one will be a one to make up 154
  115. 4:53decimal. And there is only one
  116. 4:54combination of zeros and ones in this
  117. 4:57chart that would equal that decimal
  118. 4:59value. We'll start on the right side,
  119. 5:01where we have our 128 column, and we'll
  120. 5:04ask ourselves, "Is 128 less than or
  121. 5:07equal to 154?" This is obviously less
  122. 5:11than 154, so we'll put a one in that
  123. 5:14column, and we'll bring down the 128.
  124. 5:17Now, let's look at our next column of
  125. 5:1964, and we'll combine that next column
  126. 5:22with the numbers that we've currently
  127. 5:23brought down previously. In this case,
  128. 5:25the number 128. So, 128 + 64 is 192.
  129. 5:32And we have to ask ourselves, "Is 192
  130. 5:34less than or equal to 154?" In this
  131. 5:37case, 192 is more than 154, so the
  132. 5:41answer is no, and we'll put a zero in
  133. 5:43that column. Now, we move to the next
  134. 5:45column, which is our 32. We'll add 32
  135. 5:48plus anything that we brought down. That
  136. 5:50would be 128 + 32, which equals 160. Is
  137. 5:54160 less than or equal to 154? It is
  138. 5:57not, so we'll bring down a zero in that
  139. 6:00column.
  140. 6:01We'll continue with this process by
  141. 6:02looking at the fourth column, which is
  142. 6:0416. We'll add that to anything that we
  143. 6:06brought down. So, 128 + 16 is 144.
  144. 6:11Is 144 less than or equal to 154? It is,
  145. 6:15so we'll put a one in that column and
  146. 6:17bring down the 16. Our next column is
  147. 6:19the eight, so we'll add eight to
  148. 6:21anything that we've previously brought
  149. 6:23down. So, 128 + 16 + 8 is 152. Is 152
  150. 6:29less than or equal to 154? It is, so
  151. 6:31we'll put a one in that column and bring
  152. 6:33down the number eight. Our next column
  153. 6:35is the number four. We will add four to
  154. 6:37everything that we brought down into
  155. 6:39that bottom row. So, that all adds up to
  156. 6:42156.
  157. 6:44And is 156 less than or equal to 154? It
  158. 6:48is not, so we'll put a zero in the four
  159. 6:50column. The next column is the number
  160. 6:52two. We'll add the number two to
  161. 6:54everything that we brought down so far.
  162. 6:56And if we add all of those up, it would
  163. 6:57be 154.
  164. 6:59Is 154 less than or equal to 154? It's
  165. 7:03obviously equal to 154, so we'll put a
  166. 7:06one in that column and bring down the
  167. 7:07number two. And obviously, we've hit the
  168. 7:10number 154, so we know that the number
  169. 7:12one on the last column will not be added
  170. 7:15to this final value. And if we add up
  171. 7:17everything in that last row, we see it
  172. 7:19does equal 154.
  173. 7:21And now all we have to do is look at the
  174. 7:23middle row to determine what the binary
  175. 7:25value of this is, and it would be
  176. 7:2710011010.
  177. 7:30If we look at 154 decimal, we know that
  178. 7:33that is exactly the same as 10011010
  179. 7:38in binary.
  180. 7:39With these eight individual bits, we can
  181. 7:41convert any number between 0 and 255.
  182. 7:45So, take any number you would like, put
  183. 7:47it into this particular format, and see
  184. 7:50if you can perform the conversion
  185. 7:51between binary and decimal.
  186. 7:54As you're increasing the number of bits
  187. 7:55in a binary value, you're increasing the
  188. 7:58total possible number of decimal
  189. 8:00results. For example, if you have two
  190. 8:02bits, there are only four possible
  191. 8:04outcomes: 00, 01, 10, and 11. And if you
  192. 8:09were to perform that conversion between
  193. 8:11binary and decimal, that's the same as
  194. 8:130, 1, 2, and 3. If you have three bits,
  195. 8:17then you can have eight possible
  196. 8:19outcomes. If you use four individual
  197. 8:21bits, you have up to 16 different
  198. 8:23options. Five bits moves you up to 32,
  199. 8:26six would be 64, seven bits is 128
  200. 8:30possible options, and if you were to
  201. 8:32increase the number of bits into nine
  202. 8:34bits, 10 bits, 11 bits, and so on, you
  203. 8:36would also increase the total decimal
  204. 8:39number. You can see that this value is
  205. 8:41listed in this chart, and notice that
  206. 8:44I've also added the powers of two on top
  207. 8:47of this. This is effectively what we've
  208. 8:49been doing the whole time. Two to the
  209. 8:51zero power is one, two to the first
  210. 8:53power is two, two to the second power is
  211. 8:55four, two to the third power is eight,
  212. 8:57and so on. So, as we increase this
  213. 9:00powers of two, we are also increasing
  214. 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.