1 00:00:00,410 --> 00:00:05,690 Hello, my name is Typhoon, and in this lecture you will get detailed information about converting 2 00:00:05,690 --> 00:00:13,430 the decimal to binary and vice versa, as well as converting the hexadecimal to decimal and vice versa. 3 00:00:14,210 --> 00:00:24,200 In the world of computers, data is represented using binary digits, commonly referred as zeros and 4 00:00:24,200 --> 00:00:25,250 ones. 5 00:00:25,490 --> 00:00:26,330 Right? 6 00:00:26,510 --> 00:00:35,480 So a binary is the fundamental language that computers use to perform calculations and store information. 7 00:00:35,510 --> 00:00:44,330 However, as humans, we are more accustomed to working with decimal numbers, in this case decimal 8 00:00:44,360 --> 00:00:45,110 here. 9 00:00:47,140 --> 00:00:51,460 Decimal means base ten. 10 00:00:52,750 --> 00:00:53,870 Actually, let's make, uh. 11 00:00:53,890 --> 00:00:56,110 Let's use a different color for this here. 12 00:00:56,230 --> 00:00:57,040 So. 13 00:00:58,020 --> 00:00:58,830 Base. 14 00:01:02,140 --> 00:01:05,410 And hexadecimal means. 15 00:01:13,520 --> 00:01:15,380 Hexadecimal. 16 00:01:19,700 --> 00:01:23,750 Means we call the decimal base. 17 00:01:25,760 --> 00:01:26,270 Gazette. 18 00:01:26,270 --> 00:01:27,240 Gazette Yes. 19 00:01:27,260 --> 00:01:29,670 Page 16. 20 00:01:29,750 --> 00:01:39,230 So here, therefore, understanding the conversion between these different numbers, for example, turning 21 00:01:39,230 --> 00:01:50,390 the decimal to turning the base ten to base 16 or vice versa, turning the converting the base 16 to 22 00:01:50,420 --> 00:01:53,590 base ten is important in computing. 23 00:01:53,600 --> 00:02:00,860 And here in this lecture we will explore in detail how to convert decimal to binary and vice versa. 24 00:02:00,860 --> 00:02:09,800 And you will also learn how to convert the hexadecimal to decimal like this here. 25 00:02:09,800 --> 00:02:11,210 So and vice versa. 26 00:02:11,390 --> 00:02:12,770 So here we will. 27 00:02:12,770 --> 00:02:14,870 Firstly, we will firstly. 28 00:02:16,010 --> 00:02:18,080 And we also have the binary here. 29 00:02:18,770 --> 00:02:20,150 A binary. 30 00:02:22,670 --> 00:02:25,610 And this here we tell this binary only. 31 00:02:30,000 --> 00:02:32,190 Once and. 32 00:02:32,960 --> 00:02:37,310 Zeros or zeros and ones so false or. 33 00:02:38,590 --> 00:02:41,380 Oh, and here, actually, let's. 34 00:02:45,980 --> 00:02:48,080 At this brush here. 35 00:02:49,530 --> 00:02:50,110 The light. 36 00:02:50,110 --> 00:02:50,820 This. 37 00:02:51,820 --> 00:02:53,920 As we will write things on the screen. 38 00:02:55,300 --> 00:02:55,780 Okay. 39 00:02:55,900 --> 00:02:57,220 And also we can also. 40 00:03:04,550 --> 00:03:11,540 Okay, so now we will first start with converting the decimal to binary. 41 00:03:11,570 --> 00:03:16,700 Now let's delve deeper into the process of converting decimal numbers to binary. 42 00:03:16,700 --> 00:03:25,880 And the key concept here is understanding the significance of each digits position in the binary representation. 43 00:03:25,880 --> 00:03:26,780 So. 44 00:03:27,740 --> 00:03:35,670 And the as I said, the binary system binary number system follows the base two. 45 00:03:35,690 --> 00:03:40,580 So remember base ten, base 16 and base. 46 00:03:41,520 --> 00:03:42,570 You're right. 47 00:03:43,050 --> 00:03:47,670 Now, we will delete this because I think we understood that already. 48 00:03:49,110 --> 00:03:50,280 Delete that. 49 00:03:53,780 --> 00:03:56,800 Or converting the decimal to binary. 50 00:03:56,810 --> 00:04:06,590 And in this case, so as I said so and this base two system where each position here represents a power 51 00:04:06,590 --> 00:04:07,190 of two. 52 00:04:07,490 --> 00:04:13,370 So starting from the high mass position, also known as the least significant bit. 53 00:04:13,400 --> 00:04:16,040 So the positions are here. 54 00:04:19,830 --> 00:04:28,800 Q power of 0 to 1, two of three and so on. 55 00:04:28,800 --> 00:04:34,230 So with the exponent increasing as we move to the left. 56 00:04:34,230 --> 00:04:36,060 So it works like this, right? 57 00:04:36,210 --> 00:04:37,920 The first here. 58 00:04:38,640 --> 00:04:41,880 So it works a reverse in, in reverse order here. 59 00:04:42,450 --> 00:04:45,090 So let's actually draw it again. 60 00:04:47,420 --> 00:04:47,900 So. 61 00:04:51,430 --> 00:04:58,570 And now what we're going to do is we will begin with the decimal number you want to convert to binary. 62 00:04:58,570 --> 00:05:03,580 In this case, let's actually write our the title here. 63 00:05:04,210 --> 00:05:06,430 Uh, decimal. 64 00:05:09,110 --> 00:05:09,830 To. 65 00:05:10,880 --> 00:05:11,630 Binary. 66 00:05:15,860 --> 00:05:16,760 In this case. 67 00:05:16,760 --> 00:05:17,600 Here we will. 68 00:05:17,600 --> 00:05:23,690 Let's select the number we want to convert is the 30. 69 00:05:25,500 --> 00:05:27,710 Six right here. 70 00:05:27,720 --> 00:05:36,240 So the first step here, the first step, let's actually we will also write the step steps here. 71 00:05:36,630 --> 00:05:38,340 So the first step. 72 00:05:39,870 --> 00:05:44,670 The first step is we'll begin with the decimal number you want to convert to binary. 73 00:05:44,700 --> 00:05:49,100 Here in this case, it's 36 here. 74 00:05:49,110 --> 00:05:52,740 So in this case it's 36. 75 00:05:52,740 --> 00:06:00,780 And the step two is we will divide the number by two and note down the remainder. 76 00:06:00,780 --> 00:06:07,650 So we will 36 divided by two and we don't have any remainder. 77 00:06:07,920 --> 00:06:11,640 So in this case, it is the zero. 78 00:06:14,360 --> 00:06:22,100 And the step three is continuing, dividing the quotient by two until the point becomes zero. 79 00:06:22,100 --> 00:06:22,670 Right. 80 00:06:22,700 --> 00:06:24,140 So in this case. 81 00:06:25,550 --> 00:06:26,330 We will. 82 00:06:27,360 --> 00:06:32,970 Also 36 divided by two. 83 00:06:34,820 --> 00:06:40,280 And in this case, we will not have the 36 anymore because we already divided it. 84 00:06:40,280 --> 00:06:41,870 So we will need. 85 00:06:41,870 --> 00:06:42,200 Actually. 86 00:06:42,200 --> 00:06:44,030 Let me get the pen here. 87 00:06:44,180 --> 00:06:44,900 Uh, the. 88 00:06:46,670 --> 00:06:47,410 Purser. 89 00:06:48,290 --> 00:06:54,910 So in this case, we will have the 36 divided by two. 90 00:06:54,920 --> 00:07:01,070 So we have the number reminder is zero, but we also have the. 91 00:07:03,770 --> 00:07:04,930 You need the color? 92 00:07:04,960 --> 00:07:05,640 Yes. 93 00:07:05,640 --> 00:07:06,360 Perfect. 94 00:07:06,390 --> 00:07:07,560 Now we will. 95 00:07:07,650 --> 00:07:16,020 We have the remainder of zero and we have the 36 divided by two is. 96 00:07:21,150 --> 00:07:22,080 18. 97 00:07:24,060 --> 00:07:29,550 So we will note that down 18 and the remainder zero. 98 00:07:29,670 --> 00:07:35,940 And here now, we will divide our 18. 99 00:07:37,700 --> 00:07:39,230 It you again. 100 00:07:39,230 --> 00:07:41,780 And here we also have zero. 101 00:07:41,930 --> 00:07:51,710 So now we will in the we will we will continue dividing the quotient by two until the quotient becomes 102 00:07:51,710 --> 00:07:52,670 zero as well. 103 00:07:53,570 --> 00:07:54,590 Uh, so. 104 00:07:57,250 --> 00:07:57,700 Here. 105 00:07:57,700 --> 00:08:03,410 We will now 18 and we what we have left here is nine. 106 00:08:03,430 --> 00:08:05,560 So step four again. 107 00:08:06,520 --> 00:08:08,860 And nine two again. 108 00:08:08,860 --> 00:08:12,970 And as you can see here, we have one reminder here. 109 00:08:15,290 --> 00:08:16,550 And our. 110 00:08:17,680 --> 00:08:19,180 Here is for. 111 00:08:22,740 --> 00:08:24,390 And now we will again. 112 00:08:24,630 --> 00:08:26,400 Step five is. 113 00:08:31,320 --> 00:08:33,720 Or divide by two. 114 00:08:35,690 --> 00:08:37,910 Zero and two. 115 00:08:38,540 --> 00:08:39,260 And. 116 00:08:40,870 --> 00:08:44,500 Thanks again for divide by two again. 117 00:08:44,530 --> 00:08:44,890 Oops. 118 00:08:45,190 --> 00:08:48,310 Two divided by two by two. 119 00:08:48,340 --> 00:08:50,110 We don't have any reminders. 120 00:08:50,110 --> 00:08:52,300 And we have one here. 121 00:09:02,780 --> 00:09:08,660 And here this is the last step almost for calculating our binaries. 122 00:09:08,660 --> 00:09:14,340 So now we need to divide one by two. 123 00:09:14,360 --> 00:09:14,810 Right. 124 00:09:14,810 --> 00:09:18,970 So step seven, divide one by two. 125 00:09:18,980 --> 00:09:21,410 In this case, we will have zero. 126 00:09:21,410 --> 00:09:26,390 But we left with one reminder. 127 00:09:26,390 --> 00:09:26,750 Right? 128 00:09:26,750 --> 00:09:29,690 So and this is our step. 129 00:09:29,690 --> 00:09:37,220 So let's actually so we actually in this case, in the as a result, we don't need this numbers anymore. 130 00:09:37,520 --> 00:09:42,500 So this is our result which now oops actually. 131 00:09:42,530 --> 00:09:48,920 So our result is starting from top 001001. 132 00:09:49,130 --> 00:09:59,660 And here this the the last step here we will need to write down all the reminders in reverse order and 133 00:09:59,660 --> 00:10:07,710 that will be the binary representation of our decimal number in this case is we will need to. 134 00:10:08,670 --> 00:10:13,680 Right down from the from the. 135 00:10:15,930 --> 00:10:17,120 From the bottom. 136 00:10:17,130 --> 00:10:24,840 So here what we're going to do is so our result is actually let's get the span here again. 137 00:10:24,840 --> 00:10:28,620 Let's color actually let's change the color here. 138 00:10:33,420 --> 00:10:36,510 Okay, so here, this is our result. 139 00:10:36,540 --> 00:10:41,520 So when we turn 36 to binary, we will get this here. 140 00:10:42,970 --> 00:10:43,660 One. 141 00:10:44,500 --> 00:10:45,100 Zero. 142 00:10:45,610 --> 00:10:46,450 Zero. 143 00:10:47,220 --> 00:10:52,110 And here 100 from the bottom. 144 00:10:52,200 --> 00:10:57,090 So reverse order and again, 100. 145 00:10:57,540 --> 00:10:59,850 So 100. 146 00:10:59,850 --> 00:11:02,880 So this is the decimal representation. 147 00:11:03,150 --> 00:11:10,470 So this is the binary representation of our 36 decimal number awaiting you in the next lecture.