<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Conversions Archives - NeuralLantern.com</title>
	<atom:link href="https://www.NeuralLantern.com/category/conversions/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.NeuralLantern.com/category/conversions/</link>
	<description></description>
	<lastBuildDate>Sun, 25 May 2025 08:05:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.NeuralLantern.com/wp-content/uploads/2025/04/cropped-2025-04-04-Lantern-03-32x32.png</url>
	<title>Conversions Archives - NeuralLantern.com</title>
	<link>https://www.NeuralLantern.com/category/conversions/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Master Two&#8217;s Complement: Convert &#038; Subtract Negative Binary Numbers</title>
		<link>https://www.NeuralLantern.com/master-twos-complement-convert-subtract-negative-binary-numbers/</link>
					<comments>https://www.NeuralLantern.com/master-twos-complement-convert-subtract-negative-binary-numbers/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Sun, 18 May 2025 22:53:54 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Conversions]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[binary conversion]]></category>
		<category><![CDATA[binary math]]></category>
		<category><![CDATA[binary numbers]]></category>
		<category><![CDATA[binary subtraction]]></category>
		<category><![CDATA[coding for beginners]]></category>
		<category><![CDATA[computer science basics]]></category>
		<category><![CDATA[negative numbers binary]]></category>
		<category><![CDATA[programming tutorials]]></category>
		<category><![CDATA[signed integers]]></category>
		<category><![CDATA[two's complement]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=110</guid>

					<description><![CDATA[<p>Learn two's complement to represent negative binary numbers with easy examples. Master sign bits &#038; subtraction. Subscribe!</p>
<p>The post <a href="https://www.NeuralLantern.com/master-twos-complement-convert-subtract-negative-binary-numbers/">Master Two&#8217;s Complement: Convert &amp; Subtract Negative Binary Numbers</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Master Two&#039;s Complement: Convert &amp; Subtract Negative Binary Numbers" width="1380" height="776" src="https://www.youtube.com/embed/i2tfzMqlewQ?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p class="wp-block-paragraph">Want to conquer negative numbers in binary? This fun, beginner-friendly tutorial breaks down two&#8217;s complement with step-by-step examples (-109, -29) and shows how to convert, pad, and subtract in binary. Learn sign bits, carry bits, and avoid common mistakes. Subscribe for more coding tips and tech tutorials that make learning a blast! Scan the QR code for more resources and join our community!</p>



<p class="wp-block-paragraph">Introduction to Two&#8217;s Complement 00:00:00<br>Signed vs. Unsigned Integers 00:00:28<br>Sign Bit Explanation 00:01:55<br>Positive and Negative Representation 00:02:06<br>Range of Signed Integers 00:02:48<br>Padding Signed Integers 00:05:36<br>Converting to Negative (Example: -109) 00:07:00<br>Binary Addition and Carry Bits 00:10:16<br>Correcting Conversion Mistakes 00:16:38<br>Converting Negative 29 00:13:32<br>Subtraction Using Two&#8217;s Complement 00:18:21<br>Adding Binary Numbers (109 &#8211; 29) 00:20:41<br>Verifying Results 00:23:56<br>Conclusion and Call to Action 00:25:40</p>



<p class="wp-block-paragraph">Thanks for watching!</p>



<p class="wp-block-paragraph">Find us on other social media here:</p>



<ul class="wp-block-list">
<li>https://www.NeuralLantern.com/social</li>
</ul>



<p class="wp-block-paragraph">Please help support us!</p>



<ul class="wp-block-list">
<li>Subscribing + Sharing on Social Media</li>



<li>Leaving a comment or suggestion</li>



<li>Subscribing to our Blog</li>



<li>Watching the main &#8220;pinned&#8221; video of this channel for offers and extras</li>
</ul>



<p class="wp-block-paragraph">Hey there! Let&#8217;s talk about representing negative numbers in binary.</p>



<p class="wp-block-paragraph">We&#8217;re going to use a system called 2&#8217;s complement which is going to allow us to represent signed integers,</p>



<p class="wp-block-paragraph">which means there will be a positive sign or a negative sign on the integer</p>



<p class="wp-block-paragraph">and we&#8217;ll still be able to do it in pure binary.</p>



<p class="wp-block-paragraph">So let me talk a little bit about what I mean first here.</p>



<p class="wp-block-paragraph">signed and unsigned okay so if i just type the number 14 by itself that is uh that&#8217;s an unsigned</p>



<p class="wp-block-paragraph">integer we don&#8217;t really know if it&#8217;s positive or negative like do we know that it&#8217;s negative 14 or</p>



<p class="wp-block-paragraph">do we know that it&#8217;s positive 14 right so the sign is what lets us know if something is positive or</p>



<p class="wp-block-paragraph">negative okay so if i if i type a number in binary let&#8217;s just do a pure binary number one two three</p>



<p class="wp-block-paragraph">if you know how to convert binary to decimal you probably recognize right away that this is just</p>



<p class="wp-block-paragraph">the number zero even if we add a couple of bits here that&#8217;s just like the number three</p>



<p class="wp-block-paragraph">and so this is the number three but so far if if you haven&#8217;t learned signed integers in twos</p>



<p class="wp-block-paragraph">complement or in binary then you don&#8217;t really know that there&#8217;s a sign you just kind of assume</p>



<p class="wp-block-paragraph">that the number is positive by default if you&#8217;re not using twos complement and you&#8217;re just saying</p>



<p class="wp-block-paragraph">and you&#8217;re just saying like well let&#8217;s just do a bunch of binary you know digits then yeah it&#8217;s a</p>



<p class="wp-block-paragraph">safe assumption that the the sign is positive but we&#8217;ll use two&#8217;s complement which starts with the</p>



<p class="wp-block-paragraph">idea that the highest bit the leftmost bit the bit with the height you know the most power that&#8217;s</p>



<p class="wp-block-paragraph">going to turn into the sign that&#8217;s that&#8217;s going to turn into the plus or the minus so like you</p>



<p class="wp-block-paragraph">the sign.</p>



<p class="wp-block-paragraph">So this means that we have to decide, you know, does a zero mean positive or does it</p>



<p class="wp-block-paragraph">mean negative or what means what?</p>



<p class="wp-block-paragraph">So in two&#8217;s complement, we&#8217;ll say that zero is positive and one is negative.</p>



<p class="wp-block-paragraph">So you can see right here that we&#8217;re still actually representing the number three, but</p>



<p class="wp-block-paragraph">it&#8217;s positive three for sure because this sign bit right here is zero.</p>



<p class="wp-block-paragraph">That&#8217;s positive.</p>



<p class="wp-block-paragraph">Once we decide to represent two&#8217;s complement, then we can say that for sure.</p>



<p class="wp-block-paragraph">On the other hand, if we put a one here,</p>



<p class="wp-block-paragraph">then we definitely know that this number is now negative.</p>



<p class="wp-block-paragraph">However, we don&#8217;t actually know that it&#8217;s a three</p>



<p class="wp-block-paragraph">because the numbers don&#8217;t work out the same anymore</p>



<p class="wp-block-paragraph">in two&#8217;s complement.</p>



<p class="wp-block-paragraph">So the positive numbers, they will mostly look the same.</p>



<p class="wp-block-paragraph">The negative numbers, they&#8217;ll look a lot different,</p>



<p class="wp-block-paragraph">but they&#8217;ll still be valid in order,</p>



<p class="wp-block-paragraph">you know, in terms of us being able to add them together,</p>



<p class="wp-block-paragraph">subtract them from each other and things like that.</p>



<p class="wp-block-paragraph">So two&#8217;s complement is pretty cool.</p>



<p class="wp-block-paragraph">Let&#8217;s do, let&#8217;s see, what else can I tell you?</p>



<p class="wp-block-paragraph">Oh, one thing to understand is that</p>



<p class="wp-block-paragraph">One thing to understand is that in an 8-bit unsigned integer in binary, let&#8217;s say 1, 2,</p>



<p class="wp-block-paragraph">3, 4, 5, 6, 7, 8, let&#8217;s say unsigned bits, maybe I&#8217;ll just put like, maybe just some</p>



<p class="wp-block-paragraph">like V for value, all the bits are values, that means the range is 0 to 255 with 256</p>



<p class="wp-block-paragraph">total combinations.</p>



<p class="wp-block-paragraph">But if we want to use a signed number, then we&#8217;ll actually have the signed bit be the first bit,</p>



<p class="wp-block-paragraph">and all the rest will be value bits.</p>



<p class="wp-block-paragraph">1, 2, 3, 4, 5, 6, 7.</p>



<p class="wp-block-paragraph">In this case, the range kind of goes down.</p>



<p class="wp-block-paragraph">Because if you think about it, every single bit, you know, represents like, you know,</p>



<p class="wp-block-paragraph">it helps towards the highest possible value that you can represent.</p>



<p class="wp-block-paragraph">If we&#8217;re using the leftmost bit, then for an 8-bit integer, that&#8217;s 128.</p>



<p class="wp-block-paragraph">integer that&#8217;s 128 that&#8217;s a value of 128 so we lose a lot off of the maximum</p>



<p class="wp-block-paragraph">integer that we can represent so the range here is I think it&#8217;s negative 20</p>



<p class="wp-block-paragraph">128 to positive 127 just keep in mind you&#8217;ll have to trust me in terms of why</p>



<p class="wp-block-paragraph">is the negative 128 bigger and the positive 127 you know smaller but that&#8217;s</p>



<p class="wp-block-paragraph">just the way it is so that means we only get these value bits here and if you if</p>



<p class="wp-block-paragraph">that um let&#8217;s see if i can do this quickly enough without screwing it up we&#8217;ll say 127 minus um</p>



<p class="wp-block-paragraph">minus negative 128 i guess that&#8217;s 255 and then also a zero but uh in terms of positive and</p>



<p class="wp-block-paragraph">negative the way this is going to work out is the zero will probably show up twice because uh</p>



<p class="wp-block-paragraph">255 possible combinations with seven bits.</p>



<p class="wp-block-paragraph">Normally you would have a range from negative, sorry, from zero to positive 255.</p>



<p class="wp-block-paragraph">And in this case, we&#8217;re just, you know, losing our range, but we can represent negative numbers.</p>



<p class="wp-block-paragraph">Anyway. Okay.</p>



<p class="wp-block-paragraph">So let&#8217;s talk about doing an example real fast. Let&#8217;s see.</p>



<p class="wp-block-paragraph">I&#8217;ve got like a little notes to tell me what I should do. Okay.</p>



<p class="wp-block-paragraph">It&#8217;s important to understand that normally when you have, let&#8217;s say, let&#8217;s say you have</p>



<p class="wp-block-paragraph">like an 8-bit number and you go 1, 2, 3, 4, 5, 6, 7, 8.</p>



<p class="wp-block-paragraph">And then you have 2 bits right there and so this is like, you know, positive 3.</p>



<p class="wp-block-paragraph">If you wanted to copy that number into more bytes, like for example, if you wanted to</p>



<p class="wp-block-paragraph">take a 2-byte integer and have it copy the value of a 1-byte integer, then it&#8217;s pretty</p>



<p class="wp-block-paragraph">easy.</p>



<p class="wp-block-paragraph">zeros to the left you&#8217;ll say one two three four five six seven eight that would work perfectly</p>



<p class="wp-block-paragraph">however if you did this with a negative number let&#8217;s say that we have a negative number</p>



<p class="wp-block-paragraph">I&#8217;m going to put some of the random patterns so that you don&#8217;t think it&#8217;s the three let&#8217;s see</p>



<p class="wp-block-paragraph">one two three four five six seven eight that&#8217;s eight total so I&#8217;m going to make that a one and</p>



<p class="wp-block-paragraph">then get rid of that so we have like eight negative number if we were going to copy that</p>



<p class="wp-block-paragraph">integer then we would copy paste it to start but then you&#8217;d have to pad with</p>



<p class="wp-block-paragraph">ones to the left one two three four five six seven eight same negative number</p>



<p class="wp-block-paragraph">more bits so be very careful about how you pad if you&#8217;re padding an unsigned</p>



<p class="wp-block-paragraph">integer then yeah you&#8217;ll always pad zeros to the left no matter what is</p>



<p class="wp-block-paragraph">happening but if you&#8217;re padding a signed integer then you have to pad differently</p>



<p class="wp-block-paragraph">signed integer you have to pad with whatever the highest bit is so in this case the highest bit was</p>



<p class="wp-block-paragraph">a zero so we do pad with zeros but then in this case the highest bit was a one so we have to pad</p>



<p class="wp-block-paragraph">with ones if you don&#8217;t do that you&#8217;re going to end up with a number that doesn&#8217;t actually make</p>



<p class="wp-block-paragraph">sense okay so now let&#8217;s work on actually converting a number to a negative number or representing a</p>



<p class="wp-block-paragraph">negative number in twos compliment okay so i&#8217;m going to write twos compliment here and then uh</p>



<p class="wp-block-paragraph">Let&#8217;s start off with the number negative 109.</p>



<p class="wp-block-paragraph">Okay, how do we do this?</p>



<p class="wp-block-paragraph">The first thing is convert it to its positive form.</p>



<p class="wp-block-paragraph">Take the absolute value. Okay.</p>



<p class="wp-block-paragraph">So we&#8217;re really just, you know, take positive form here,</p>



<p class="wp-block-paragraph">and that&#8217;s just going to be positive 109.</p>



<p class="wp-block-paragraph">Okay, no problem.</p>



<p class="wp-block-paragraph">I&#8217;ll say start with negative 109, and then we&#8217;ll take the positive form 109.</p>



<p class="wp-block-paragraph">Now we&#8217;ll convert it to binary.</p>



<p class="wp-block-paragraph">Okay, this is not a video that teaches you how to convert to binary, so I&#8217;m just going</p>



<p class="wp-block-paragraph">to try to do this in my head real fast here.</p>



<p class="wp-block-paragraph">It&#8217;s going to be, let&#8217;s see, we got 8 bits, we&#8217;ll use just 8 bits to store the number,</p>



<p class="wp-block-paragraph">and because it&#8217;s low enough and I don&#8217;t want to use that many bits, so it&#8217;s odd, so I can</p>



<p class="wp-block-paragraph">add a 1 there, but maybe for now I should find the highest bit that is less than the</p>



<p class="wp-block-paragraph">actual number.</p>



<p class="wp-block-paragraph">So this is the 128 bit right here. So that&#8217;s going to be a zero. This is the 64 bits</p>



<p class="wp-block-paragraph">I&#8217;m going to put a one there and I&#8217;m just going to say</p>



<p class="wp-block-paragraph">Mmm, maybe like</p>



<p class="wp-block-paragraph">This is like maybe not the smartest way to do it. I&#8217;ll say 109 minus 64</p>



<p class="wp-block-paragraph">Because I put a one there and then 45 so now this is 32 that&#8217;s less than 45. So I&#8217;ll put a one there and</p>



<p class="wp-block-paragraph">Then it&#8217;s going to be minus 40</p>



<p class="wp-block-paragraph">So it goes from 45 to 13.</p>



<p class="wp-block-paragraph">So then that was the 32.</p>



<p class="wp-block-paragraph">Okay, so 128, 64, 32, and then 16.</p>



<p class="wp-block-paragraph">Is 16 less than 13?</p>



<p class="wp-block-paragraph">No, it&#8217;s not.</p>



<p class="wp-block-paragraph">So we&#8217;ll put a zero here.</p>



<p class="wp-block-paragraph">And then the next one is going to be just four.</p>



<p class="wp-block-paragraph">Four is definitely less.</p>



<p class="wp-block-paragraph">So I&#8217;ll put a one bit there.</p>



<p class="wp-block-paragraph">And then I&#8217;ll subtract four.</p>



<p class="wp-block-paragraph">And then one, two, four.</p>



<p class="wp-block-paragraph">Oh, wait a minute.</p>



<p class="wp-block-paragraph">One, two, four, eight.</p>



<p class="wp-block-paragraph">wait a minute one two four eight sorry that was supposed to be subtracted uh subtracting eight</p>



<p class="wp-block-paragraph">because that was the eight bit uh then i want to get five so here is the four bit so i put a one</p>



<p class="wp-block-paragraph">there and then i&#8217;ll just put a one here because four plus five is equal to uh i&#8217;m sorry four plus</p>



<p class="wp-block-paragraph">one is equal to five so let&#8217;s see um it is let me just double check here one</p>



<p class="wp-block-paragraph">one let me just double check my conversion real fast it&#8217;s going to be</p>



<p class="wp-block-paragraph">the one bit plus two four plus eight six thirty two plus thirty two plus sixty</p>



<p class="wp-block-paragraph">four did I get one on nine yeah okay so I guess I did it right so convert to</p>



<p class="wp-block-paragraph">binary and that&#8217;s going to be this the next thing we&#8217;ll do is we will invert the</p>



<p class="wp-block-paragraph">bits I made a little edit jump here because I inverted the bits incorrectly</p>



<p class="wp-block-paragraph">on the first try which is sad but hey it happens the next thing we&#8217;ll do is</p>



<p class="wp-block-paragraph">but hey it happens the next thing we&#8217;ll do is we&#8217;ll invert the bits so basically you know we</p>



<p class="wp-block-paragraph">take this original sequence here and i&#8217;ll just turn every single bit uh i&#8217;ll flip it i&#8217;ll flip</p>



<p class="wp-block-paragraph">ones to zeros and zeros to ones so i&#8217;m going to go one zero zero one zero zero one zero okay so now</p>



<p class="wp-block-paragraph">we have this number invert the bits then we just have to add one so we&#8217;ll add positive one to that</p>



<p class="wp-block-paragraph">that it&#8217;s just going to be a one there at the end.</p>



<p class="wp-block-paragraph">But sometimes that might not be the case</p>



<p class="wp-block-paragraph">because what if we already had a one there</p>



<p class="wp-block-paragraph">and we had to add one to that?</p>



<p class="wp-block-paragraph">Well, we&#8217;d add one to the right side</p>



<p class="wp-block-paragraph">and it would turn into a zero</p>



<p class="wp-block-paragraph">and then it would carry a bit to the left.</p>



<p class="wp-block-paragraph">That would become a zero</p>



<p class="wp-block-paragraph">and then the carry bit would show up all the way over there.</p>



<p class="wp-block-paragraph">So I just want you to be aware of the fact that</p>



<p class="wp-block-paragraph">when you add two binary numbers together,</p>



<p class="wp-block-paragraph">you have to be careful.</p>



<p class="wp-block-paragraph">You have to add them the same way you would add decimal numbers.</p>



<p class="wp-block-paragraph">For each digit&#8217;s position,</p>



<p class="wp-block-paragraph">you have to add the two numbers together and then if they overflow then you just</p>



<p class="wp-block-paragraph">kind of wrap around to the lowest number again subtracting you know the highest</p>



<p class="wp-block-paragraph">value or sorry subtracting the base like in decimal if you add 9 and 9 the answer</p>



<p class="wp-block-paragraph">is 18 but you&#8217;re not going to write 18 in that one position you&#8217;re going to</p>



<p class="wp-block-paragraph">subtract the base which is 10 so it&#8217;ll actually be 8 and then you&#8217;ll carry the</p>



<p class="wp-block-paragraph">plus nine is equal to eight carry the one right so we&#8217;ll do the same thing in binary we&#8217;ll say</p>



<p class="wp-block-paragraph">if we ever get a one plus one when we&#8217;re adding the answer will be two but then we subtract the</p>



<p class="wp-block-paragraph">base which is two so the answer is actually zero carry a one bit keep that in mind i&#8217;m just gonna</p>



<p class="wp-block-paragraph">write it all out for you so you can kind of get a little bit of practice it&#8217;s important to to</p>



<p class="wp-block-paragraph">practice this because it&#8217;s easy to get wrong i&#8217;m going to put a bunch of dashes up at the top to</p>



<p class="wp-block-paragraph">and I&#8217;m going to say we&#8217;re going to add, you know, one number plus another number,</p>



<p class="wp-block-paragraph">put a little plus symbol over there just to try and make sure we do it the right way.</p>



<p class="wp-block-paragraph">Okay, so how do we add these?</p>



<p class="wp-block-paragraph">Well, we&#8217;ll just go to the right side.</p>



<p class="wp-block-paragraph">Zero plus one is one, no carry bit.</p>



<p class="wp-block-paragraph">One plus zero is one, no carry bit.</p>



<p class="wp-block-paragraph">Then we got a couple zeros here, no carry bit, of course.</p>



<p class="wp-block-paragraph">One plus zero is one, no carry bit.</p>



<p class="wp-block-paragraph">And then a couple zeros and then another one with no carry bit.</p>



<p class="wp-block-paragraph">Okay, so, you know, we could have done that pretty easily, but</p>



<p class="wp-block-paragraph">but well now we&#8217;re getting a taste for binary addition that might be harder later.</p>



<p class="wp-block-paragraph">So we&#8217;ll just do that for now.</p>



<p class="wp-block-paragraph">And now this is the two&#8217;s complement representation of negative 109.</p>



<p class="wp-block-paragraph">I&#8217;ll say now we have negative 109 is equal to that.</p>



<p class="wp-block-paragraph">leftmost number the most powerful sorry leftmost bit the most powerful bit is a one remember one</p>



<p class="wp-block-paragraph">always indicates negative so when you&#8217;re looking at it if your leftmost bit turns out to be a zero</p>



<p class="wp-block-paragraph">then you probably did something wrong or you had an overflow maybe um and again if we were going</p>



<p class="wp-block-paragraph">to try to you know send this number into a two byte number or an eight byte number or whatever</p>



<p class="wp-block-paragraph">uh then we would just have to pad with the sign bit so one two three four five six seven eight</p>



<p class="wp-block-paragraph">help my brain so this was this is the way it would look in a two-byte number this is the way it would</p>



<p class="wp-block-paragraph">look in a three-byte a four-byte and five six seven how many one two three four five six seven</p>



<p class="wp-block-paragraph">okay one more this is what it would look like as an eight-byte number or a quad word 64-bit number</p>



<p class="wp-block-paragraph">yeah okay so now we know how to do negative 109 okay so now let&#8217;s do a number that&#8217;s a little bit</p>



<p class="wp-block-paragraph">negative 29. So let&#8217;s say convert, or how about represent negative 29 into</p>



<p class="wp-block-paragraph">2&#8217;s complement. Okay. So first we, you know, first get the absolute value.</p>



<p class="wp-block-paragraph">So just 29. And then we have to invert the, sorry, we have to get that into binary. So</p>



<p class="wp-block-paragraph">next convert to binary. And I&#8217;m going to start with zeros, one, two, three, four, five, six,</p>



<p class="wp-block-paragraph">1, 2, 3, 4, 5, 6, 7, 8.</p>



<p class="wp-block-paragraph">For this video, remember, we&#8217;re choosing to use one byte integers.</p>



<p class="wp-block-paragraph">But if you wanted to do a bigger one or you had to do a bigger one,</p>



<p class="wp-block-paragraph">then just, you know, keep that in mind.</p>



<p class="wp-block-paragraph">Okay, so 128 is not smaller than 29.</p>



<p class="wp-block-paragraph">64 is not.</p>



<p class="wp-block-paragraph">32 is not.</p>



<p class="wp-block-paragraph">16 is, though.</p>



<p class="wp-block-paragraph">So I&#8217;ll put a 16 bit there.</p>



<p class="wp-block-paragraph">And I&#8217;ll just subtract 16 from 29.</p>



<p class="wp-block-paragraph">29 minus 16.</p>



<p class="wp-block-paragraph">Now we&#8217;ve got 13 left.</p>



<p class="wp-block-paragraph">So 64, 32, 16.</p>



<p class="wp-block-paragraph">six four thirty two sixteen eight okay so now I&#8217;m gonna put a one bit there and</p>



<p class="wp-block-paragraph">I&#8217;m gonna subtract 8 from the remainder and then we got a five which is pretty</p>



<p class="wp-block-paragraph">easy to do eight four and then a one so now we have well zero zero zero one one</p>



<p class="wp-block-paragraph">one zero one that&#8217;s the binary number the positive or unsigned representation</p>



<p class="wp-block-paragraph">representation. So now we&#8217;ll add one. Positive one. And let&#8217;s try to do this the right way so</p>



<p class="wp-block-paragraph">that we can practice carry bits with addition a little bit. Notice how this one is already there</p>



<p class="wp-block-paragraph">on the right side. So it&#8217;s going to, we&#8217;re going to have at least one carry bit for sure.</p>



<p class="wp-block-paragraph">So then I&#8217;m going to go doop like that. And then I&#8217;m going to say that we have like, you know,</p>



<p class="wp-block-paragraph">what is the result? Put a positive sign there. And then I&#8217;m going to put a bunch of dashes</p>



<p class="wp-block-paragraph">my carry bits because I can I can forget that pretty easily. So the first thing is we add one</p>



<p class="wp-block-paragraph">and one. The answer is two, but we can&#8217;t put the number two here because it&#8217;s binary. Instead we</p>



<p class="wp-block-paragraph">need to subtract the base which is two. So two minus two is equal to zero, but then we have a</p>



<p class="wp-block-paragraph">carry bit of one. So I&#8217;m going to put a one there. The first carry bit will stay as a dash for this</p>



<p class="wp-block-paragraph">whole you know exercise because you&#8217;re not going to carry on to the first digit. So now we have</p>



<p class="wp-block-paragraph">what would have been just zero plus zero now we have one plus zero plus zero so</p>



<p class="wp-block-paragraph">that means this is going to be one and then the carry bit is just going to be</p>



<p class="wp-block-paragraph">zero because we don&#8217;t actually carry anything so then we have zero plus one</p>



<p class="wp-block-paragraph">plus zero so that&#8217;s going to be a one and then zero carry bit and then zero</p>



<p class="wp-block-paragraph">one zero is just going to be one and then there&#8217;s going to be no carry bit</p>



<p class="wp-block-paragraph">and then zero one zero again a one no carry bit because we didn&#8217;t actually</p>



<p class="wp-block-paragraph">zero zero zero and then I&#8217;m just gonna put zeros here okay so now we have</p>



<p class="wp-block-paragraph">successfully added I blew it totally blew it I always forget steps don&#8217;t</p>



<p class="wp-block-paragraph">forget the steps this is a good lesson I&#8217;m gonna leave this in the video</p>



<p class="wp-block-paragraph">because I want you to see that everybody makes mistakes and you got to practice</p>



<p class="wp-block-paragraph">practice practice especially before you have to actually do this in real life or</p>



<p class="wp-block-paragraph">or something like that.</p>



<p class="wp-block-paragraph">Next, convert to binary.</p>



<p class="wp-block-paragraph">Before you add one, I&#8217;m gonna just remove this.</p>



<p class="wp-block-paragraph">Oh my gosh.</p>



<p class="wp-block-paragraph">Next, flip the bits,</p>



<p class="wp-block-paragraph">which is gonna be 1110010.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">So now we take this bit flipped number</p>



<p class="wp-block-paragraph">and we will add one.</p>



<p class="wp-block-paragraph">So that&#8217;s gonna be zero, zero, zero, zero, zero, zero, zero,</p>



<p class="wp-block-paragraph">one, oh, it&#8217;s too easy.</p>



<p class="wp-block-paragraph">Maybe I got excited and I thought,</p>



<p class="wp-block-paragraph">excited and I thought, oh, it&#8217;s carry bit time.</p>



<p class="wp-block-paragraph">But even though the last edition that I did was wrong because I forgot to carry</p>



<p class="wp-block-paragraph">the or flip the bits, you still at least saw a little bit about how to carry the bits.</p>



<p class="wp-block-paragraph">Right. OK, so it&#8217;s just going to be one.</p>



<p class="wp-block-paragraph">Let me start from the right side.</p>



<p class="wp-block-paragraph">One one zero zero zero one one one one one one.</p>



<p class="wp-block-paragraph">Let me just double check here.</p>



<p class="wp-block-paragraph">One one one zero zero zero.</p>



<p class="wp-block-paragraph">OK, so I got that.</p>



<p class="wp-block-paragraph">Now we have.</p>



<p class="wp-block-paragraph">negative 29 in twos compliment. Again notice if we actually tried to add those numbers up to be</p>



<p class="wp-block-paragraph">like an unsigned binary number they&#8217;re not really going to make sense because this is like 64 plus</p>



<p class="wp-block-paragraph">32 plus 3. So what would that end up being? Let&#8217;s just double check here. 64 plus 32 plus 3, 99.</p>



<p class="wp-block-paragraph">That&#8217;s not actually the number but the number is 29. So keep in mind you can&#8217;t just look at this</p>



<p class="wp-block-paragraph">unless you&#8217;re like really, really practiced.</p>



<p class="wp-block-paragraph">Okay, and again, notice that the number is 1 at the very left,</p>



<p class="wp-block-paragraph">indicating that it&#8217;s a negative number.</p>



<p class="wp-block-paragraph">Now, let&#8217;s look at how to subtract one number from another</p>



<p class="wp-block-paragraph">using 2&#8217;s complement.</p>



<p class="wp-block-paragraph">Okay, so what I want to do is I want to subtract,</p>



<p class="wp-block-paragraph">let&#8217;s say, 29 from 109.</p>



<p class="wp-block-paragraph">Okay, so let&#8217;s subtract, and I&#8217;ll just say 109 minus 29.</p>



<p class="wp-block-paragraph">109 minus 29.</p>



<p class="wp-block-paragraph">And how I would do that is basically I&#8217;ll start by just taking 109.</p>



<p class="wp-block-paragraph">Let&#8217;s see, convert to binary.</p>



<p class="wp-block-paragraph">So I&#8217;m just going to copy paste that number.</p>



<p class="wp-block-paragraph">So 109 is this and then 29, take the positive version.</p>



<p class="wp-block-paragraph">It is just, let&#8217;s see, before we flip the bits or anything,</p>



<p class="wp-block-paragraph">let me make sure that I grab the right one.</p>



<p class="wp-block-paragraph">Invert the bits, okay.</p>



<p class="wp-block-paragraph">So positive 29 is this number.</p>



<p class="wp-block-paragraph">Whoops.</p>



<p class="wp-block-paragraph">is this number whoops let me put parentheses around that so it&#8217;s easy to tell and then I&#8217;ll</p>



<p class="wp-block-paragraph">put a positive sign there like that maybe like that nope nope nope nope how about this okay</p>



<p class="wp-block-paragraph">so now we have both of these numbers in positive form so now if we added 109 plus 29 that wouldn&#8217;t</p>



<p class="wp-block-paragraph">negative positive 29 that would be what we wanted right because really if you&#8217;re subtracting</p>



<p class="wp-block-paragraph">i&#8217;ll say aka</p>



<p class="wp-block-paragraph">positive 29 plus negative 29 all we really need to do is um invert the 29 and then add the result</p>



<p class="wp-block-paragraph">to 109 so that means we&#8217;ll we&#8217;ll turn positive 29 into negative 29 using two&#8217;s complement</p>



<p class="wp-block-paragraph">through the steps again but basically put it there but basically you know that&#8217;s negative 29</p>



<p class="wp-block-paragraph">so say positive 129 is equal to what i just put up here and then negative 29 is equal to</p>



<p class="wp-block-paragraph">maybe i should do the parentheses again for clarity uh is equal to this okay so you can tell</p>



<p class="wp-block-paragraph">that positive 29 is pretty pretty different from negative 29 but now we have</p>



<p class="wp-block-paragraph">29 but now we have both of those numbers so let&#8217;s see 0 1 1 0 and then we&#8217;re ready to add okay all</p>



<p class="wp-block-paragraph">we got to do is add them together next add them together maybe I should write the steps up here</p>



<p class="wp-block-paragraph">negative 29 using twos complement and then next add them together so then I&#8217;m</p>



<p class="wp-block-paragraph">going to copy paste the bits here and it&#8217;s going to be this plus this do a</p>



<p class="wp-block-paragraph">positive plus sign just to remind ourselves that we are actually adding</p>



<p class="wp-block-paragraph">and then I&#8217;m going to put a bunch of placeholders for sign bits up at the</p>



<p class="wp-block-paragraph">top and now we&#8217;ll have a little bit more fun adding numbers together maybe I&#8217;ll</p>



<p class="wp-block-paragraph">drag this down</p>



<p class="wp-block-paragraph">Oh my god. Oh, there we go. Okay. So I&#8217;ll start with the one on the right, the position on the</p>



<p class="wp-block-paragraph">right. That&#8217;s going to be one plus one equals two, but then that&#8217;s an overflow. So I&#8217;m going to</p>



<p class="wp-block-paragraph">subtract the base. So it&#8217;s going to be zero. And then don&#8217;t forget to carry the one. Oh,</p>



<p class="wp-block-paragraph">cool. More interesting. So we have one plus zero plus one. That&#8217;s going to be another two carry</p>



<p class="wp-block-paragraph">two carry the one so it&#8217;s going to be zero and then carry the one again so i&#8217;m going to put the</p>



<p class="wp-block-paragraph">carry bit up there and then again we have one plus one is equal to two so it&#8217;s going to be zero</p>



<p class="wp-block-paragraph">carry the one again zero carry the one and then finally we don&#8217;t really have a carry bit</p>



<p class="wp-block-paragraph">um so we&#8217;ll just have like a one and there&#8217;s there&#8217;s no carry so it&#8217;s going to be you know</p>



<p class="wp-block-paragraph">carry a zero and then we add these two together so it&#8217;s going to be a zero carry the one and then</p>



<p class="wp-block-paragraph">Now we have a three.</p>



<p class="wp-block-paragraph">Oh, that&#8217;s kind of nice.</p>



<p class="wp-block-paragraph">So this is an interesting edge case kind of.</p>



<p class="wp-block-paragraph">One plus one plus one is three.</p>



<p class="wp-block-paragraph">But if we subtract two, the base from it, you know, three minus two, it&#8217;s going to be one, not zero.</p>



<p class="wp-block-paragraph">So it actually is going to be a one and then carry the one on top of that.</p>



<p class="wp-block-paragraph">Then for here, let me space this over a little bit so that I can illustrate what&#8217;s going on a little bit better.</p>



<p class="wp-block-paragraph">We&#8217;re going to have one plus zero plus one.</p>



<p class="wp-block-paragraph">definitely going to be zero and then carry the one but there&#8217;s no bit where that carried one can</p>



<p class="wp-block-paragraph">can show up on right so that one overflows it falls off the edge if this was a bigger number</p>



<p class="wp-block-paragraph">then okay we you know if we had more bits to this number then sure we would just keep carrying over</p>



<p class="wp-block-paragraph">over to the left but remember we said before that when we have a very big number let&#8217;s see</p>



<p class="wp-block-paragraph">bits it&#8217;s just ones all the way to the side that will actually help us make sure that if our final</p>



<p class="wp-block-paragraph">number is actually going to end up being positive that everything kind of like dominoes like carry</p>



<p class="wp-block-paragraph">the one carry the one carry the one carry the one carry the one all the way until one of the ones</p>



<p class="wp-block-paragraph">falls off think about it so anyway this one just is gone we don&#8217;t really care about it anymore</p>



<p class="wp-block-paragraph">the result is going to be just only eight bits because that&#8217;s the number that we started with</p>



<p class="wp-block-paragraph">bunch of zeros what is you know the final answer let&#8217;s just compute this</p>



<p class="wp-block-paragraph">real fast to decimal so this is 128 and then 64 so it&#8217;s gonna be 64 plus not 32</p>



<p class="wp-block-paragraph">but 16 so 64 plus 16 that&#8217;s gonna be oops 16 that&#8217;s gonna be 80 and now we</p>



<p class="wp-block-paragraph">just have to ask ourselves again as like a final step to double check yourself to</p>



<p class="wp-block-paragraph">what you&#8217;re doing and that you got it right is just punch up 109 minus 29 just to make sure</p>



<p class="wp-block-paragraph">109 minus 29 whoops what happened here 109 minus</p>



<p class="wp-block-paragraph">oh i think i stole my subtraction key for the annotator 109 minus 29 is 80</p>



<p class="wp-block-paragraph">so again you know if you&#8217;re if you&#8217;re trying to like you know write something down to do some</p>



<p class="wp-block-paragraph">you know taking an exam or something you definitely want to double check yourself in several ways</p>



<p class="wp-block-paragraph">As you can tell from this video alone</p>



<p class="wp-block-paragraph">I got one of these things wrong because I forgot to input the bits as a step before adding one</p>



<p class="wp-block-paragraph">So you know your final step should be actually trying to add two numbers together or subtract numbers or whatever</p>



<p class="wp-block-paragraph">You&#8217;re doing to make sure that you got the binary correct</p>



<p class="wp-block-paragraph">So let&#8217;s see</p>



<p class="wp-block-paragraph">Hmm</p>



<p class="wp-block-paragraph">I guess maybe your first indication that the result was going to be positive would be that</p>



<p class="wp-block-paragraph">there&#8217;s a zero there. And just, you know, as a sanity check, you look at the top and you&#8217;re like,</p>



<p class="wp-block-paragraph">well, I was going to subtract a small number from a larger number. So the result should probably be</p>



<p class="wp-block-paragraph">positive, right? Like 29 is like way lower than 109. So it should be positive, which means the</p>



<p class="wp-block-paragraph">final result should have a zero at that leftmost position. Okay, so that&#8217;s two&#8217;s compliment,</p>



<p class="wp-block-paragraph">two&#8217;s complement how to convert numbers from positive to negative in two&#8217;s complement you</p>



<p class="wp-block-paragraph">know what the sign bit means and all that stuff and how to perform subtraction via two&#8217;s complement</p>



<p class="wp-block-paragraph">i hope you enjoyed this video thank you for watching i hope you learned a little bit of</p>



<p class="wp-block-paragraph">stuff and had a little bit of fun see you in the next video hey everybody thanks for watching this</p>



<p class="wp-block-paragraph">video again from the bottom of my heart i really appreciate it i do hope you did learn something</p>



<p class="wp-block-paragraph">If you could do me a please, a small little favor, could you please subscribe and follow this channel or these videos or whatever it is you do on the current social media website that you&#8217;re looking at right now.</p>



<p class="wp-block-paragraph">It would really mean the world to me and it&#8217;ll help make more videos and grow this community.</p>



<p class="wp-block-paragraph">So we&#8217;ll be able to do more videos, longer videos, better videos, or just I&#8217;ll be able to keep making videos in general.</p>



<p class="wp-block-paragraph">So please do me a kindness and subscribe.</p>



<p class="wp-block-paragraph">in the middle of the night and I just wake up because I know somebody</p>



<p class="wp-block-paragraph">subscribed or followed. It just wakes me up and I get filled with joy. That&#8217;s</p>



<p class="wp-block-paragraph">exactly what happens every single time. So you could do it as a nice favor to me</p>



<p class="wp-block-paragraph">or you could you could troll me if you want to just wake me up in the middle</p>



<p class="wp-block-paragraph">of the night just subscribe and then I&#8217;ll just wake up. I promise that&#8217;s what</p>



<p class="wp-block-paragraph">will happen. Also if you look at the middle of the screen right now you</p>



<p class="wp-block-paragraph">should see a QR code which you can scan in order to go to the website which I</p>



<p class="wp-block-paragraph">think is also named somewhere at the bottom of this video and it&#8217;ll take you</p>



<p class="wp-block-paragraph">you to my main website where you can just kind of like see all the videos I published and the</p>



<p class="wp-block-paragraph">services and tutorials and things that I offer and all that good stuff and if you have a suggestion</p>



<p class="wp-block-paragraph">for clarifications or errata or just future videos that you want to see please leave a comment or if</p>



<p class="wp-block-paragraph">you just want to say hey what&#8217;s up what&#8217;s going on you know just send me a comment whatever I also</p>



<p class="wp-block-paragraph">wake up for those in the middle of the night I get I wake up in a cold sweat and I&#8217;m like</p>



<p class="wp-block-paragraph">it would really mean the world to me. I would really appreciate it. So again,</p>



<p class="wp-block-paragraph">thank you so much for watching this video and enjoy the cool music as I fade</p>



<p class="wp-block-paragraph">into the darkness, which is coming for us all.</p>



<p class="wp-block-paragraph">Thank you.</p>
<p>The post <a href="https://www.NeuralLantern.com/master-twos-complement-convert-subtract-negative-binary-numbers/">Master Two&#8217;s Complement: Convert &amp; Subtract Negative Binary Numbers</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/master-twos-complement-convert-subtract-negative-binary-numbers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ultimate Beginner&#8217;s Guide to Linux Command Line: Ubuntu Terminal Basics &#038; More</title>
		<link>https://www.NeuralLantern.com/ultimate-beginners-guide-to-linux-command-line-ubuntu-terminal-basics-more/</link>
					<comments>https://www.NeuralLantern.com/ultimate-beginners-guide-to-linux-command-line-ubuntu-terminal-basics-more/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Sun, 18 May 2025 05:18:19 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Conversions]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[APT package manager]]></category>
		<category><![CDATA[C++ programming]]></category>
		<category><![CDATA[command line basics]]></category>
		<category><![CDATA[GCC compiler]]></category>
		<category><![CDATA[Linux desktop environment]]></category>
		<category><![CDATA[Linux file navigation]]></category>
		<category><![CDATA[Linux for beginners]]></category>
		<category><![CDATA[Linux tutorial]]></category>
		<category><![CDATA[Nano editor]]></category>
		<category><![CDATA[open source tools]]></category>
		<category><![CDATA[sudo command]]></category>
		<category><![CDATA[terminal commands]]></category>
		<category><![CDATA[terminal emulator]]></category>
		<category><![CDATA[Ubuntu terminal]]></category>
		<category><![CDATA[Vim tutorial]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=107</guid>

					<description><![CDATA[<p>Master Linux command line basics on Ubuntu! Learn terminal commands, file navigation, and more in this fun beginner guide.</p>
<p>The post <a href="https://www.NeuralLantern.com/ultimate-beginners-guide-to-linux-command-line-ubuntu-terminal-basics-more/">Ultimate Beginner&#8217;s Guide to Linux Command Line: Ubuntu Terminal Basics &amp; More</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Ultimate Beginner?s Guide to Linux Command Line: Ubuntu Terminal Basics &amp; More" width="1380" height="776" src="https://www.youtube.com/embed/2bhhH2ykaiE?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p class="wp-block-paragraph">Hey there, Linux newbies! Ready to unlock the power of the Linux command line? In this fun and approachable guide, we dive into the Ubuntu terminal to teach you the essentials of command-line magic. Perfect for beginners, this video covers everything from launching a terminal (like the awesome Terminator emulator) to mastering commands like ls, cd, mkdir, and rm. You’ll learn how to navigate the file system, create and delete files, edit code with Nano (sorry, Vim fans!), and even compile C++ programs with GCC. Plus, we’ll show you how to install cool programs like GIMP using apt and wield sudo like a pro. Whether you’re switching from a GUI or just curious about the terminal’s hacker vibes, this video is your gateway to a whole new world of open-source tools. Stick around till the end for a quick peek at graphical editing and a heartfelt call to join our community! Hit that subscribe button, scan the QR code to check out more tutorials, and let’s keep exploring Linux together. Drop a comment with your favorite command or what you want to learn next! #Linux #CommandLine #Ubuntu</p>



<p class="wp-block-paragraph">Introduction to Linux Command Line 00:00:00<br>Ubuntu Linux Terminal 00:00:04<br>Benefits of Terminal Usage 00:00:09<br>Desktop Environments (XFCE vs. GNOME) 00:01:07<br>Launching the Terminal 00:01:55<br>Terminal Emulator (Terminator) 00:02:06<br>Understanding the Shell (Bash) 00:04:00<br>Echo Command and Variables 00:04:06<br>Clear Command 00:07:34<br>Navigating File System (PWD) 00:08:21<br>Listing Directory Contents (LS) 00:08:56<br>Using Man Pages 00:10:37<br>Changing Directories (CD) 00:13:15<br>Creating Directories (MKDIR) 00:14:51<br>Going Up Directory Levels 00:15:57<br>Creating and Deleting Files (Touch, RM) 00:19:03<br>Editing Files with Nano 00:21:00<br>Editing Files with Vim 00:26:24<br>Installing Programs with APT 00:28:06<br>Using Sudo for Root Access 00:32:29<br>Updating and Upgrading System 00:34:54<br>Graphical File Editing 00:36:05<br>Compiling C++ Programs (GCC, G++) 00:39:53<br>Executing Programs 00:40:57<br>Conclusion and Subscription Call 00:43:04</p>



<p class="wp-block-paragraph">Thanks for watching!</p>



<p class="wp-block-paragraph">Find us on other social media here:</p>



<ul class="wp-block-list">
<li>https://www.NeuralLantern.com/social</li>
</ul>



<p class="wp-block-paragraph">Please help support us!</p>



<ul class="wp-block-list">
<li>Subscribing + Sharing on Social Media</li>



<li>Leaving a comment or suggestion</li>



<li>Subscribing to our Blog</li>



<li>Watching the main &#8220;pinned&#8221; video of this channel for offers and extras</li>
</ul>



<p class="wp-block-paragraph">Hello there. Today I&#8217;d like to show you a little bit about the Linux command line</p>



<p class="wp-block-paragraph">inside of a terminal. More specifically I&#8217;m going to be doing this on Ubuntu Linux.</p>



<p class="wp-block-paragraph">This is great for beginners to start to get to know how to issue commands and do</p>



<p class="wp-block-paragraph">things like that and if you&#8217;re used to doing everything in a GUI in a graphical</p>



<p class="wp-block-paragraph">user interface then you probably have no idea how much fun it is to actually</p>



<p class="wp-block-paragraph">work inside of a terminal. There are tons and tons of programs that you can gain</p>



<p class="wp-block-paragraph">can gain access to once you start getting more comfortable with the terminal.</p>



<p class="wp-block-paragraph">When you look around at the open source world and all the wonderful tools that people make,</p>



<p class="wp-block-paragraph">you&#8217;ll find out pretty quickly that a lot of programmers just write tools that only</p>



<p class="wp-block-paragraph">work with the command line.</p>



<p class="wp-block-paragraph">And you know, maybe later if someone else comes along and wants to add a graphical</p>



<p class="wp-block-paragraph">interface for it, then they do.</p>



<p class="wp-block-paragraph">But lots of times that doesn&#8217;t actually ever happen.</p>



<p class="wp-block-paragraph">And so you sort of open up a whole new world for yourself when you learn to use the terminal.</p>



<p class="wp-block-paragraph">when you learn to use the terminal.</p>



<p class="wp-block-paragraph">Anyway, and then you also look really cool like a hacker.</p>



<p class="wp-block-paragraph">So I&#8217;m on a desktop engine called XFCE</p>



<p class="wp-block-paragraph">or a desktop environment called XFCE.</p>



<p class="wp-block-paragraph">Most new Linux users who are on Ubuntu</p>



<p class="wp-block-paragraph">are probably looking at the GNOME desktop.</p>



<p class="wp-block-paragraph">So let me just say real fast,</p>



<p class="wp-block-paragraph">if you have a desktop that looks nothing like this</p>



<p class="wp-block-paragraph">and you think you&#8217;re on GNOME because you just installed vanilla Ubuntu or something,</p>



<p class="wp-block-paragraph">then you probably want to take a look at the top left corner of the screen</p>



<p class="wp-block-paragraph">for a little button called Activities,</p>



<p class="wp-block-paragraph">or at the bottom left of the screen for a button that I think is like nine dots.</p>



<p class="wp-block-paragraph">Both of those buttons will allow you to search for programs on the system.</p>



<p class="wp-block-paragraph">What you should do is basically click one of those buttons</p>



<p class="wp-block-paragraph">and then start typing in the word Terminal</p>



<p class="wp-block-paragraph">until you see a terminal pop up and then you can click on it</p>



<p class="wp-block-paragraph">and then you can launch it.</p>



<p class="wp-block-paragraph">and then you can, you can launch it. Okay. So for me though,</p>



<p class="wp-block-paragraph">I already have this set up on my desktop.</p>



<p class="wp-block-paragraph">So I&#8217;m going to click on my little terminal icon and I&#8217;m going to launch a</p>



<p class="wp-block-paragraph">terminal. For those of you who don&#8217;t know what terminal I&#8217;m using right now,</p>



<p class="wp-block-paragraph">this is called terminator. I think it&#8217;s really cool.</p>



<p class="wp-block-paragraph">I&#8217;m personally a huge fan of this terminal. Uh,</p>



<p class="wp-block-paragraph">the main reason is that it&#8217;s really easy and fast to split the panes.</p>



<p class="wp-block-paragraph">So you can do multiple, uh, sessions.</p>



<p class="wp-block-paragraph">If you&#8217;re connected to multiple remote machines at the same time, um,</p>



<p class="wp-block-paragraph">machines at the same time, you know, later in your career. It&#8217;s really convenient. It&#8217;s actually</p>



<p class="wp-block-paragraph">kind of broken right now a little bit, but not too bad. I still love it. Okay, so I open up a</p>



<p class="wp-block-paragraph">terminal. Technically, this is called a terminal emulator. The real terminal would just be like a</p>



<p class="wp-block-paragraph">completely black screen, and you wouldn&#8217;t be able to see anything else graphical. So this is sort of</p>



<p class="wp-block-paragraph">like a windowed program that runs another program under the hood that helps this program talk with</p>



<p class="wp-block-paragraph">talk with the operating system and it sort of performs two-way communication and shows you</p>



<p class="wp-block-paragraph">what the operating system is saying to you and doing and things like that. So,</p>



<p class="wp-block-paragraph">but for all intent and purpose, this is a, this is a terminal. I always call this a terminal.</p>



<p class="wp-block-paragraph">Okay. Let&#8217;s see. Maybe I need to increase the font size real fast. Um,</p>



<p class="wp-block-paragraph">I got a profiles out if I do mono space and I just do it like a little bit, a little bit bigger</p>



<p class="wp-block-paragraph">bigger than the default so it&#8217;s easier to watch on a video. Okay how about that is that better?</p>



<p class="wp-block-paragraph">I think that&#8217;s probably better. Okay so for starters uh you&#8217;re looking at a command line</p>



<p class="wp-block-paragraph">interface you&#8217;re looking at a terminal this is a terminal emulator program uh we have like a</p>



<p class="wp-block-paragraph">blinking cursor you can enter commands and stuff like that it&#8217;s important to understand at first</p>



<p class="wp-block-paragraph">that um you&#8217;re actually already inside of a program remember I said that the terminal emulator is a</p>



<p class="wp-block-paragraph">and it helps go between you and the operating system.</p>



<p class="wp-block-paragraph">There&#8217;s also another program that sort of interprets the things that you&#8217;re saying</p>



<p class="wp-block-paragraph">before sending that off to the operating system.</p>



<p class="wp-block-paragraph">The program is different depending on what environment you&#8217;re using,</p>



<p class="wp-block-paragraph">but in Ubuntu, it usually defaults to bash.</p>



<p class="wp-block-paragraph">So I&#8217;m going to type a quick command.</p>



<p class="wp-block-paragraph">We&#8217;ll explain what these commands do in a second.</p>



<p class="wp-block-paragraph">And I&#8217;m going to type echo shell,</p>



<p class="wp-block-paragraph">and that&#8217;s going to tell me what interpreter we&#8217;re using.</p>



<p class="wp-block-paragraph">So by default, we&#8217;re using an interpreter called bash.</p>



<p class="wp-block-paragraph">So if you hear anybody say, hey, I&#8217;m in bash or I got a bash script.</p>



<p class="wp-block-paragraph">Well, this is what it is.</p>



<p class="wp-block-paragraph">It&#8217;s a program that will be understood by bash.</p>



<p class="wp-block-paragraph">Okay, so what did I just type?</p>



<p class="wp-block-paragraph">I typed echo and then I typed a dollar sign and then I typed shell.</p>



<p class="wp-block-paragraph">So on the terminal, you know, you can type any command you want.</p>



<p class="wp-block-paragraph">It may not actually work, but you know, you can type.</p>



<p class="wp-block-paragraph">The way that your command is usually interpreted is if you type just one thing,</p>



<p class="wp-block-paragraph">then that&#8217;s considered the program that you want to execute.</p>



<p class="wp-block-paragraph">the program that you want to execute so if i type the word echo by itself and hit enter</p>



<p class="wp-block-paragraph">then bash or i&#8217;ll just say you know the shell or the terminal is going to look for a program named</p>



<p class="wp-block-paragraph">echo and if it finds it it&#8217;ll execute it um there&#8217;s a there&#8217;s a special way that it searches</p>



<p class="wp-block-paragraph">for programs like uh the the program echo for example it has to it has to go somewhere in the</p>



<p class="wp-block-paragraph">operating system right there has to be a path so if you type which echo you can see exactly where</p>



<p class="wp-block-paragraph">system so slash user slash bin slash echo so that&#8217;s where it is but i can just type echo by</p>



<p class="wp-block-paragraph">itself because the system knows how to go search through special system paths looking for the echo</p>



<p class="wp-block-paragraph">program that you typed so it can find the real location anyway so i type echo and this program</p>



<p class="wp-block-paragraph">launches and it doesn&#8217;t really do anything the thing about the echo program is if you just type</p>



<p class="wp-block-paragraph">actually receive what you typed after after the echo program executable name</p>



<p class="wp-block-paragraph">and it&#8217;ll just print it back to you.</p>



<p class="wp-block-paragraph">So what&#8217;s happening here is the bash interpreter, the shell,</p>



<p class="wp-block-paragraph">it&#8217;ll always take the first argument.</p>



<p class="wp-block-paragraph">We call these arguments, words or symbols separated by spaces.</p>



<p class="wp-block-paragraph">The first argument is echo.</p>



<p class="wp-block-paragraph">That&#8217;s considered the program that you want to run.</p>



<p class="wp-block-paragraph">And every argument after that is actually just sent into the program that you launch.</p>



<p class="wp-block-paragraph">thing that&#8217;s actually launching here is the echo program and then hello is a string that gets sent</p>



<p class="wp-block-paragraph">into the echo program you can do as many arguments as you want actually i don&#8217;t know if there&#8217;s like</p>



<p class="wp-block-paragraph">a huge limit huge limit you can probably type a lot of these before you run out and so i&#8217;ve typed</p>



<p class="wp-block-paragraph">three arguments technically the echo program is is argument zero the first argument but um i&#8217;ve</p>



<p class="wp-block-paragraph">typed out three arguments that will get sent into the echo program and you can see that echo received</p>



<p class="wp-block-paragraph">three of them and just printed them out and that&#8217;s it so it&#8217;s the echo program is pretty simple but</p>



<p class="wp-block-paragraph">if i if i type a dollar sign and i like actually let me just type shell by itself if i say echo</p>



<p class="wp-block-paragraph">shell it just prints the word shell because that&#8217;s interpreted as just like a regular string but if i</p>



<p class="wp-block-paragraph">put a dollar sign in front of it then bash considers that to be a variable and so what it&#8217;ll do is it&#8217;ll</p>



<p class="wp-block-paragraph">go into memory wherever the variables are stored and it&#8217;ll try to find a variable named shell</p>



<p class="wp-block-paragraph">variable named shell and if there is one it&#8217;ll take the value that&#8217;s inside of shell which in</p>



<p class="wp-block-paragraph">this case is just you know bash and it&#8217;ll convert the symbol dollar sign shell into</p>



<p class="wp-block-paragraph">the actual variable value and then it&#8217;ll print that it&#8217;ll send that into the echo command</p>



<p class="wp-block-paragraph">so if i say echo shell step one it looks for variable name shell step two it grabs bin bash</p>



<p class="wp-block-paragraph">and replaces that where the dollar sign shell was written and then it sends that into the echo program</p>



<p class="wp-block-paragraph">into the echo program.</p>



<p class="wp-block-paragraph">So now you know how to launch a program.</p>



<p class="wp-block-paragraph">Here&#8217;s another program.</p>



<p class="wp-block-paragraph">It&#8217;s called clear.</p>



<p class="wp-block-paragraph">If you just type the, you know, the command clear, then a program called clear gets launched.</p>



<p class="wp-block-paragraph">And all it does is just to help you clear the terminal.</p>



<p class="wp-block-paragraph">If you want to keep things a little clean, just to prove to you that this is a program,</p>



<p class="wp-block-paragraph">we can type which clear and notice how it actually has a path in your operating system.</p>



<p class="wp-block-paragraph">User bin clear.</p>



<p class="wp-block-paragraph">This will be different if you&#8217;re on a different operating system than mine, but it&#8217;s all okay.</p>



<p class="wp-block-paragraph">It&#8217;s all okay.</p>



<p class="wp-block-paragraph">All right.</p>



<p class="wp-block-paragraph">So where am I?</p>



<p class="wp-block-paragraph">Because you can see that I&#8217;m at some sort of a location.</p>



<p class="wp-block-paragraph">It says Mike at lectures.</p>



<p class="wp-block-paragraph">That sounds like the name of my computer and the name of my profile.</p>



<p class="wp-block-paragraph">But where am I in the file system?</p>



<p class="wp-block-paragraph">Because your computer is like, you know, a big file system.</p>



<p class="wp-block-paragraph">There&#8217;s lots of files and folders all over the place.</p>



<p class="wp-block-paragraph">Where is the terminal sitting?</p>



<p class="wp-block-paragraph">Is it sitting anywhere in the file system?</p>



<p class="wp-block-paragraph">It actually is.</p>



<p class="wp-block-paragraph">It&#8217;s sitting in your home directory by default, unless you&#8217;ve made some customizations.</p>



<p class="wp-block-paragraph">unless you&#8217;ve made some customizations, I can access the current working directory</p>



<p class="wp-block-paragraph">by typing the command PWD, print working directory.</p>



<p class="wp-block-paragraph">And again, this is a program and its whole job is just to print</p>



<p class="wp-block-paragraph">where the working directory currently is.</p>



<p class="wp-block-paragraph">So the working directory means where you&#8217;re currently at,</p>



<p class="wp-block-paragraph">where you&#8217;re situated, where you&#8217;re looking at.</p>



<p class="wp-block-paragraph">And it&#8217;s saying that I&#8217;m in my home folder.</p>



<p class="wp-block-paragraph">In Linux, the home folders are usually slash home slash your username.</p>



<p class="wp-block-paragraph">So if I want to see what&#8217;s inside of my home folder,</p>



<p class="wp-block-paragraph">I can use another program called LS, which just lists the contents of a folder.</p>



<p class="wp-block-paragraph">So I&#8217;m going to type LS and it tells me I&#8217;ve got all these folders,</p>



<p class="wp-block-paragraph">desktop documents, downloads and so forth.</p>



<p class="wp-block-paragraph">LS takes arguments.</p>



<p class="wp-block-paragraph">Remember, we have arguments like if we did echo hello,</p>



<p class="wp-block-paragraph">then it&#8217;ll print the word hello, but we can give the LS command some arguments too.</p>



<p class="wp-block-paragraph">We can say LS, I&#8217;d like you to do, you know, some stuff.</p>



<p class="wp-block-paragraph">So what do we want it to do?</p>



<p class="wp-block-paragraph">Let&#8217;s make it print all the files and folders,</p>



<p class="wp-block-paragraph">even those that might be hidden because they,</p>



<p class="wp-block-paragraph">on Linux, if a file or folder starts with a period</p>



<p class="wp-block-paragraph">in the name, it&#8217;ll usually be hidden by default.</p>



<p class="wp-block-paragraph">So if we want to print everything, we can say dash a.</p>



<p class="wp-block-paragraph">And if I want to print in a vertical list style,</p>



<p class="wp-block-paragraph">I can put an L in front of there.</p>



<p class="wp-block-paragraph">So I can say LS, which is the program</p>



<p class="wp-block-paragraph">and then dash LA is the arguments I give it.</p>



<p class="wp-block-paragraph">And that&#8217;s going to tell it to print my directory</p>



<p class="wp-block-paragraph">with all hidden files and folders shown.</p>



<p class="wp-block-paragraph">Notice how all this stuff showed up</p>



<p class="wp-block-paragraph">that wasn&#8217;t there before,</p>



<p class="wp-block-paragraph">like bash history.</p>



<p class="wp-block-paragraph">I have a cache folder.</p>



<p class="wp-block-paragraph">But then there was also some stuff</p>



<p class="wp-block-paragraph">that was there before,</p>



<p class="wp-block-paragraph">like the documents folder,</p>



<p class="wp-block-paragraph">the music and the pictures folder,</p>



<p class="wp-block-paragraph">and so forth.</p>



<p class="wp-block-paragraph">So you saw these things before.</p>



<p class="wp-block-paragraph">Like, let me just at least highlight one.</p>



<p class="wp-block-paragraph">So you saw the videos folder there before.</p>



<p class="wp-block-paragraph">You just didn&#8217;t see all those other hidden ones</p>



<p class="wp-block-paragraph">because they had dots</p>



<p class="wp-block-paragraph">in front of their file name.</p>



<p class="wp-block-paragraph">in front of their file name or folder name depending on what they are okay and</p>



<p class="wp-block-paragraph">then of course you can see that this is a vertical list and you&#8217;re getting a</p>



<p class="wp-block-paragraph">little bit better now at giving arguments to programs so how did we know</p>



<p class="wp-block-paragraph">that ls takes dash la as an argument or as some arguments you could search on</p>



<p class="wp-block-paragraph">the internet which is pretty fast usually you can also use a program</p>



<p class="wp-block-paragraph">called man the man program will give you information on another program most</p>



<p class="wp-block-paragraph">programs have MAN entries so when you install the program there there will be</p>



<p class="wp-block-paragraph">like a new manual page that shows up in the MAN program so I&#8217;m going to type MAN</p>



<p class="wp-block-paragraph">LS and hit enter I&#8217;m basically going to launch the MAN program and I&#8217;m going to</p>



<p class="wp-block-paragraph">tell it that I want information on the LS program so I hit enter and then it</p>



<p class="wp-block-paragraph">sort of shows me like a big you know little instruction thing a little sheet</p>



<p class="wp-block-paragraph">a little well it&#8217;s actually not little depending on the program this could be</p>



<p class="wp-block-paragraph">tells you all the things that we can do with this program. So right here you can see the</p>



<p class="wp-block-paragraph">dash LA part that we did earlier. Whoops, what did I do wrong? The dash LA part that we did earlier.</p>



<p class="wp-block-paragraph">That&#8217;s the dash A. And we could also instead have just said dash dash all.</p>



<p class="wp-block-paragraph">That&#8217;s what the manual is telling us. Where&#8217;s that dash L, the listing? Let&#8217;s see, it&#8217;s somewhere in</p>



<p class="wp-block-paragraph">here. H I J K L, maybe I should do a page down.</p>



<p class="wp-block-paragraph">Maybe I should do a page down.</p>



<p class="wp-block-paragraph">Yeah, there we go.</p>



<p class="wp-block-paragraph">So, well, there&#8217;s no dash dash list.</p>



<p class="wp-block-paragraph">I was hoping that there would be a dash dash list,</p>



<p class="wp-block-paragraph">but this tells you at least that you can say dash L to use a listing format.</p>



<p class="wp-block-paragraph">And there&#8217;s tons of other options that you can learn and read about</p>



<p class="wp-block-paragraph">if you just take some time to explore the man page.</p>



<p class="wp-block-paragraph">Kind of cool, right?</p>



<p class="wp-block-paragraph">Okay, so how do you get out of this?</p>



<p class="wp-block-paragraph">By the way, how do you search for stuff?</p>



<p class="wp-block-paragraph">I&#8217;m going to search by using the slash key.</p>



<p class="wp-block-paragraph">key so like you know the the web slash key I&#8217;m gonna hit slash and then I&#8217;m</p>



<p class="wp-block-paragraph">gonna type something I&#8217;m gonna say maybe block and then hit enter and notice how</p>



<p class="wp-block-paragraph">it highlights on the first match I can do a regular end to go down to the next</p>



<p class="wp-block-paragraph">match or I can do shift in like a capital N to go backwards up to the</p>



<p class="wp-block-paragraph">previous match so this helps you you know kind of search through man pages and</p>



<p class="wp-block-paragraph">things like that and the cool thing about what the man page is using right</p>



<p class="wp-block-paragraph">It&#8217;s using a way to display itself.</p>



<p class="wp-block-paragraph">I think it&#8217;s either using a program called less or it&#8217;s using a program that works very</p>



<p class="wp-block-paragraph">similarly to a program called less.</p>



<p class="wp-block-paragraph">So the program less, it&#8217;s just, it loads up a document for you and it lets you do things</p>



<p class="wp-block-paragraph">like this, scroll up and down, search for things, go to a line number, you know, and</p>



<p class="wp-block-paragraph">just, you know, it&#8217;s, it&#8217;s, it&#8217;s very convenient, right?</p>



<p class="wp-block-paragraph">Like it pages in the terminal.</p>



<p class="wp-block-paragraph">If you want to exit this, you just got to hit Q.</p>



<p class="wp-block-paragraph">So I hit Q right now.</p>



<p class="wp-block-paragraph">So I&#8217;m going to do man LS again, hit Q, and then I get out.</p>



<p class="wp-block-paragraph">So now we know a few commands.</p>



<p class="wp-block-paragraph">We know how to see where we&#8217;re at in the file system and list directories and things like that.</p>



<p class="wp-block-paragraph">Let&#8217;s go into the documents directory with a special command called CD.</p>



<p class="wp-block-paragraph">So CD stands for change directory.</p>



<p class="wp-block-paragraph">And if I just say documents and hit enter, now the shell itself is inside of a different folder.</p>



<p class="wp-block-paragraph">It was in my home folder before.</p>



<p class="wp-block-paragraph">Now it&#8217;s in my documents folder.</p>



<p class="wp-block-paragraph">If you&#8217;re ever unsure of where you are, use the PWD command again to figure out what&#8217;s going on.</p>



<p class="wp-block-paragraph">Okay. Oh, look, I am inside of my documents folder.</p>



<p class="wp-block-paragraph">If you ever find yourself in some sort of a deep, deep subfolder, let&#8217;s see.</p>



<p class="wp-block-paragraph">I don&#8217;t even let&#8217;s do like user live live.</p>



<p class="wp-block-paragraph">LiveX32.</p>



<p class="wp-block-paragraph">Oops.</p>



<p class="wp-block-paragraph">What am I doing?</p>



<p class="wp-block-paragraph">There we go.</p>



<p class="wp-block-paragraph">What about this library?</p>



<p class="wp-block-paragraph">I&#8217;m just going into a random folder right now just to show you that we can go pretty</p>



<p class="wp-block-paragraph">deep.</p>



<p class="wp-block-paragraph">So I think that I&#8217;ve reached the end of that.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">So suppose I&#8217;m navigating around and I&#8217;m in some, some kind of a folder and I&#8217;m at,</p>



<p class="wp-block-paragraph">I do PWD and it says, oh no, you&#8217;re like way deep in some other folder.</p>



<p class="wp-block-paragraph">How do I get back to my home folder?</p>



<p class="wp-block-paragraph">Well, you could type out the whole home folder if you wanted to, but the easiest way to get</p>



<p class="wp-block-paragraph">pwd with no arguments.</p>



<p class="wp-block-paragraph">Once you hit enter, it&#8217;ll drop back down to your home folder.</p>



<p class="wp-block-paragraph">And if you&#8217;re not sure, then use the pwd command.</p>



<p class="wp-block-paragraph">Okay, so we&#8217;re doing pretty well.</p>



<p class="wp-block-paragraph">We&#8217;re kind of like navigating in here.</p>



<p class="wp-block-paragraph">Let&#8217;s make a directory.</p>



<p class="wp-block-paragraph">I&#8217;m going to go into my documents folder again.</p>



<p class="wp-block-paragraph">And let&#8217;s see.</p>



<p class="wp-block-paragraph">So right here I&#8217;ve got like, whoops, I&#8217;ve got some documents.</p>



<p class="wp-block-paragraph">Let me make a directory called temp with the command make directory.</p>



<p class="wp-block-paragraph">so uh well mkdir is the name of the program the first argument i gave it was temp and so it just</p>



<p class="wp-block-paragraph">created a folder for me called temp so if i say cd temp i can now go into the folder that i just</p>



<p class="wp-block-paragraph">created if i list the contents of that directory again it&#8217;s empty because i just made it pwd lets</p>



<p class="wp-block-paragraph">me know where i am just to make sure when you&#8217;re new to the terminal you actually i still use this</p>



<p class="wp-block-paragraph">customize my terminal so it doesn&#8217;t print the full the full path there it just prints the current</p>



<p class="wp-block-paragraph">directory name so i kind of get lost sometimes so you just use the pwd command to figure out where</p>



<p class="wp-block-paragraph">you are and by the way just as a reminder we could always do man and the name of a program so i&#8217;m</p>



<p class="wp-block-paragraph">going to say man make dir and there&#8217;s options even for making a directory i&#8217;m not going to go over</p>



<p class="wp-block-paragraph">those but just to let you know there&#8217;s a lot to explore okay so now i&#8217;m inside of the temp directory</p>



<p class="wp-block-paragraph">I&#8217;ve made a folder. What if I want to go one level up? What if I don&#8217;t exactly want to drop</p>



<p class="wp-block-paragraph">to the home directory, but maybe I went one level too deep and I want to go back up one level.</p>



<p class="wp-block-paragraph">Well, again, I could type out the whole thing. I could say go home and I could say documents</p>



<p class="wp-block-paragraph">and whatever. But by the way, I&#8217;m hitting control C when you see that care at C that usually tries</p>



<p class="wp-block-paragraph">to get the current program to stop. But when you&#8217;re inside of bash, it&#8217;ll just sort of like</p>



<p class="wp-block-paragraph">abort the current command and go to another line.</p>



<p class="wp-block-paragraph">Okay, so how do I go up one level?</p>



<p class="wp-block-paragraph">Well, in Linux, there are two special directories</p>



<p class="wp-block-paragraph">that have periods in the name, well, they are periods.</p>



<p class="wp-block-paragraph">The directory known as period,</p>



<p class="wp-block-paragraph">actually, let me show you the full,</p>



<p class="wp-block-paragraph">yeah, okay, well, the empty directory listing,</p>



<p class="wp-block-paragraph">notice how it actually does show me two things.</p>



<p class="wp-block-paragraph">It doesn&#8217;t show me nothing,</p>



<p class="wp-block-paragraph">it shows me these two directories right here,</p>



<p class="wp-block-paragraph">that&#8217;s not a mistake.</p>



<p class="wp-block-paragraph">So this directory, the one with just one period, that always represents the current directory</p>



<p class="wp-block-paragraph">that you&#8217;re in.</p>



<p class="wp-block-paragraph">So if I use just a period to go into a directory or to do something to a directory, that period</p>



<p class="wp-block-paragraph">will represent something different based on where I am.</p>



<p class="wp-block-paragraph">Am I in my home folder?</p>



<p class="wp-block-paragraph">Am I in the desktop?</p>



<p class="wp-block-paragraph">Am I somewhere else?</p>



<p class="wp-block-paragraph">The period changes based on where you are.</p>



<p class="wp-block-paragraph">dot it always means i&#8217;m getting used to this new pen setup it always means it always means there we</p>



<p class="wp-block-paragraph">go it looks like a emo guy with his hair like to the side um it always means the parent directory</p>



<p class="wp-block-paragraph">so remember before we could type we could type cd and then some directory name right to go into a</p>



<p class="wp-block-paragraph">directory uh now we can type cd dot dot and that&#8217;s basically saying we would like to change directories</p>



<p class="wp-block-paragraph">change directories, we would like to go to the documents directory.</p>



<p class="wp-block-paragraph">Why?</p>



<p class="wp-block-paragraph">Because the documents directory is the parent directory of the temp directory.</p>



<p class="wp-block-paragraph">So if I say cd dot dot, notice how it goes up one level.</p>



<p class="wp-block-paragraph">Let&#8217;s do that again just to be sure.</p>



<p class="wp-block-paragraph">So I&#8217;m going to say pwd, and if I say cd dot dot, and then pwd again,</p>



<p class="wp-block-paragraph">notice how we were in temp, and as soon as we went up one level,</p>



<p class="wp-block-paragraph">it went to documents.</p>



<p class="wp-block-paragraph">So it&#8217;s just kind of a quick way.</p>



<p class="wp-block-paragraph">you know, use a bunch of directory names separated by slashes.</p>



<p class="wp-block-paragraph">You can also put dot dot in any directory that you want.</p>



<p class="wp-block-paragraph">So like imagine I&#8217;m in the temp directory again.</p>



<p class="wp-block-paragraph">I could say let&#8217;s go up one directory and then a slash and then up another directory</p>



<p class="wp-block-paragraph">and then a slash and then up another directory.</p>



<p class="wp-block-paragraph">And I should end up in the home folder.</p>



<p class="wp-block-paragraph">Isn&#8217;t that kind of funny, right?</p>



<p class="wp-block-paragraph">So I&#8217;m saying like give me the parent directory of the current directory</p>



<p class="wp-block-paragraph">and then give me its parent directory and then give me its parent directory.</p>



<p class="wp-block-paragraph">So I went up three levels.</p>



<p class="wp-block-paragraph">its parent directory. So I went up three levels.</p>



<p class="wp-block-paragraph">So let me drop to my home folder and go back into documents and go back into</p>



<p class="wp-block-paragraph">temp. Whoops.</p>



<p class="wp-block-paragraph">I forgot to do CD.</p>



<p class="wp-block-paragraph">Now we&#8217;re getting pretty good at navigating. Let me make another directory.</p>



<p class="wp-block-paragraph">I&#8217;ll call it delete me because I intend to delete this directory.</p>



<p class="wp-block-paragraph">There&#8217;s a program called RM remove that lets you delete stuff.</p>



<p class="wp-block-paragraph">Actually first, before we delete that, let&#8217;s use a program called touch.</p>



<p class="wp-block-paragraph">and the program touch just sort of like creates a blank file.</p>



<p class="wp-block-paragraph">I think if the file already exists, it won&#8217;t mess with the contents,</p>



<p class="wp-block-paragraph">but let&#8217;s do an experiment in a moment.</p>



<p class="wp-block-paragraph">So I&#8217;m going to say touch blank file.</p>



<p class="wp-block-paragraph">It should create a file for me called blank file.</p>



<p class="wp-block-paragraph">So now I&#8217;ve got a directory and a file called blank file.</p>



<p class="wp-block-paragraph">Now I can remove the blank file with the RM command.</p>



<p class="wp-block-paragraph">So just RM and then give it the name of the file.</p>



<p class="wp-block-paragraph">Be careful with RM.</p>



<p class="wp-block-paragraph">He&#8217;ll destroy your file system if you&#8217;re not careful.</p>



<p class="wp-block-paragraph">and now let&#8217;s remove the delete me folder when you try to remove folders you have to tell the</p>



<p class="wp-block-paragraph">remove command that you intend to delete a folder by specifying also the dash r command which means</p>



<p class="wp-block-paragraph">this is a folder i would like you to recursively delete it so let me just type it without that</p>



<p class="wp-block-paragraph">real fast and it says hey i can&#8217;t do it it&#8217;s a directory so i&#8217;m going to say all right now</p>



<p class="wp-block-paragraph">And it did it.</p>



<p class="wp-block-paragraph">Some other useful flags you might want in the future.</p>



<p class="wp-block-paragraph">The first one that I like is V for Verbo.</p>



<p class="wp-block-paragraph">So it&#8217;ll print everything that it deletes.</p>



<p class="wp-block-paragraph">And F for Force.</p>



<p class="wp-block-paragraph">If you&#8217;re absolutely sure that you know exactly what you&#8217;re about to delete,</p>



<p class="wp-block-paragraph">then Force will make it so that this program won&#8217;t start asking you,</p>



<p class="wp-block-paragraph">are you sure? Are you sure? Are you sure?</p>



<p class="wp-block-paragraph">So it&#8217;s kind of dangerous, but it&#8217;s also pretty convenient.</p>



<p class="wp-block-paragraph">Imagine that.</p>



<p class="wp-block-paragraph">Anyway, so let&#8217;s see what else can I when I talk about here, we know how to like touch to create a blank file and create a folder and navigate all around. Let&#8217;s edit a file. Let&#8217;s actually edit a file in the terminal. So there&#8217;s kind of like an age old argument between the Vim people, or the V people, and the nano people. And so I just want to say that if you were a Vim person, don&#8217;t ever talk to me again for the rest of your life.</p>



<p class="wp-block-paragraph">again for the rest of your life just kidding you&#8217;re okay we can sort of be</p>



<p class="wp-block-paragraph">friends but I&#8217;m personally a nano person so what am I talking about nano is just</p>



<p class="wp-block-paragraph">another program it may or may not be on your system I think on a boon to it</p>



<p class="wp-block-paragraph">should be there by default let me just double check yeah it should be there by</p>



<p class="wp-block-paragraph">default we&#8217;ll talk about how to install programs in a second I&#8217;ll go sudo apt</p>



<p class="wp-block-paragraph">install just to remind myself but so you type nano to execute the nano program</p>



<p class="wp-block-paragraph">of a file that you want to edit.</p>



<p class="wp-block-paragraph">So let&#8217;s edit a file called my program.</p>



<p class="wp-block-paragraph">Whoops, program.cpp, just if you&#8217;re writing some code.</p>



<p class="wp-block-paragraph">And this tells the nano program that you would like</p>



<p class="wp-block-paragraph">to edit this file named my program.cpp.</p>



<p class="wp-block-paragraph">You hit enter and you have like a nice little editor</p>



<p class="wp-block-paragraph">that shows up.</p>



<p class="wp-block-paragraph">Notice at the bottom,</p>



<p class="wp-block-paragraph">you have a bunch of little shortcuts, right?</p>



<p class="wp-block-paragraph">So if you do, actually let&#8217;s look at this one</p>



<p class="wp-block-paragraph">Actually, let&#8217;s look at this one over here first.</p>



<p class="wp-block-paragraph">If you hit control O, that means save the file, write it out.</p>



<p class="wp-block-paragraph">If you hit control X, that means you&#8217;d like to exit the editor.</p>



<p class="wp-block-paragraph">So if I want to get rid of the editor and just like, you know, go back to the terminal,</p>



<p class="wp-block-paragraph">the normal command line, I&#8217;ll do control X.</p>



<p class="wp-block-paragraph">There&#8217;s a bunch of other stuff you can do.</p>



<p class="wp-block-paragraph">And there&#8217;s like a big help menu.</p>



<p class="wp-block-paragraph">alt n to see line numbers in nano so that makes it a lot more convenient for coding so i&#8217;m going</p>



<p class="wp-block-paragraph">to do alt n to get those lines off let me just type the word hello real fast hello</p>



<p class="wp-block-paragraph">okay so now i want to save this let&#8217;s do uh we can do control o to just save it but we&#8217;ll stay</p>



<p class="wp-block-paragraph">inside of the editor or we can do control x to save it and then exit the editor so i think i&#8217;m</p>



<p class="wp-block-paragraph">going to exit them say control x notice how at the bottom it asks me do i want to save the modified</p>



<p class="wp-block-paragraph">That just means I&#8217;ve been editing inside of this like, you know, temporary area.</p>



<p class="wp-block-paragraph">Do I want to actually save it?</p>



<p class="wp-block-paragraph">So I&#8217;m going to hit Y for yes.</p>



<p class="wp-block-paragraph">Then it asks me, you know, what&#8217;s the name of the file that you want to save?</p>



<p class="wp-block-paragraph">Well, since I specified my program when I launched Nano, it already knows what I want to do.</p>



<p class="wp-block-paragraph">If you didn&#8217;t specify the name of a file, then you could provide it here.</p>



<p class="wp-block-paragraph">So I&#8217;m just going to hit enter.</p>



<p class="wp-block-paragraph">And now the program exits.</p>



<p class="wp-block-paragraph">If I list the contents of the directory, I can see that I now have</p>



<p class="wp-block-paragraph">the world&#8217;s worst C++ program ever because it&#8217;s just hello that&#8217;s not going</p>



<p class="wp-block-paragraph">to compile so how do I see the contents of a file with the terminal well for</p>



<p class="wp-block-paragraph">starters obviously you could just type the name of the program again for nano</p>



<p class="wp-block-paragraph">and it&#8217;ll show you there it is I&#8217;m gonna hit ctrl X to exit out of it but</p>



<p class="wp-block-paragraph">there&#8217;s another popular command that people like to use called cat cat</p>



<p class="wp-block-paragraph">basically will go to a file load it into memory and spill it onto the terminal</p>



<p class="wp-block-paragraph">to the terminal for you. I mean really what it does is it prints to something called standard</p>



<p class="wp-block-paragraph">output and then the shell interpreter grabs standard output and it you know renders it to</p>



<p class="wp-block-paragraph">the terminal but we&#8217;ll just say that this prints it to the terminal. So if I say cat and the name</p>



<p class="wp-block-paragraph">of my program then it prints it to the terminal so you can check any program this way. Do yourself</p>



<p class="wp-block-paragraph">a favor well do me a favor and do cat at the following path etc os release. The etc</p>



<p class="wp-block-paragraph">The etc directory off of the root of the file system in Linux is usually where all of the</p>



<p class="wp-block-paragraph">configuration files get stored.</p>



<p class="wp-block-paragraph">At least the ones that are system wide.</p>



<p class="wp-block-paragraph">So like system wide programs, their configurations are usually in the etc folder.</p>



<p class="wp-block-paragraph">So there&#8217;s a special file in many operating systems, definitely Ubuntu, called OS release,</p>



<p class="wp-block-paragraph">which just describes the operating system to you.</p>



<p class="wp-block-paragraph">So here, if you&#8217;re not sure what operating system you&#8217;re using, or if you just want to</p>



<p class="wp-block-paragraph">and kind of see information on it.</p>



<p class="wp-block-paragraph">Well, you can say cat, etc.</p>



<p class="wp-block-paragraph">OS release and see your OS.</p>



<p class="wp-block-paragraph">So there it is, all this stuff.</p>



<p class="wp-block-paragraph">Pretty fun.</p>



<p class="wp-block-paragraph">Okay, so we did my program.</p>



<p class="wp-block-paragraph">Let&#8217;s edit my program real fast.</p>



<p class="wp-block-paragraph">I&#8217;m going to go myprogram.cvp.</p>



<p class="wp-block-paragraph">And if I want to just say, I don&#8217;t know,</p>



<p class="wp-block-paragraph">maybe I want to make this look a little bit more like a program.</p>



<p class="wp-block-paragraph">So I can say integer main and we&#8217;ll just pretend that we&#8217;re not going to do any arguments.</p>



<p class="wp-block-paragraph">Return zero.</p>



<p class="wp-block-paragraph">So this probably would compile.</p>



<p class="wp-block-paragraph">I think this would compile.</p>



<p class="wp-block-paragraph">If not, then you might have to go into the number of arguments and then…</p>



<p class="wp-block-paragraph">Don&#8217;t worry about this.</p>



<p class="wp-block-paragraph">This is not a programming video.</p>



<p class="wp-block-paragraph">A character pointer.</p>



<p class="wp-block-paragraph">I can never remember if the brackets go before or after the variable name.</p>



<p class="wp-block-paragraph">a new program i usually compile it both ways and see which one works um okay so oh i did it too</p>



<p class="wp-block-paragraph">fast okay so i edited and uh if i want to just save my changes i&#8217;m going to say control o</p>



<p class="wp-block-paragraph">notice how it asked me again at the bottom do you want to save it under the same name i just say</p>



<p class="wp-block-paragraph">enter to say yes if i uh wanted to instead just exit the program i do control x and then</p>



<p class="wp-block-paragraph">inside a weird area where you can&#8217;t really hit keys and you can&#8217;t exit very</p>



<p class="wp-block-paragraph">well you might be inside of Vim some some operating system use Vim as the</p>



<p class="wp-block-paragraph">default or some some programs so I&#8217;m gonna just enter Vim manually whoops</p>



<p class="wp-block-paragraph">what am I doing is it Vim or V so I&#8217;m not a Vim user okay there we go so Vim is</p>



<p class="wp-block-paragraph">like you know it&#8217;s very complicated some people say it&#8217;s lightning fast and it&#8217;s</p>



<p class="wp-block-paragraph">By the time you need so many features,</p>



<p class="wp-block-paragraph">you might as well just mount the remote file system</p>



<p class="wp-block-paragraph">and use an actual graphical editor.</p>



<p class="wp-block-paragraph">I&#8217;m just not a fan.</p>



<p class="wp-block-paragraph">Don&#8217;t hate me.</p>



<p class="wp-block-paragraph">You know, we can still be friends.</p>



<p class="wp-block-paragraph">So if you&#8217;re inside of Vim, you hit the insert key</p>



<p class="wp-block-paragraph">and then you can kind of like type and stuff like that.</p>



<p class="wp-block-paragraph">So it&#8217;s whatever, but what?</p>



<p class="wp-block-paragraph">Insert?</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">I&#8217;m getting lost already inside of Vim.</p>



<p class="wp-block-paragraph">I&#8217;m just going to delete this stuff that I created and so if you want to exit from</p>



<p class="wp-block-paragraph">Vim hit the escape key first to make sure you&#8217;re not inside of insert mode or any</p>



<p class="wp-block-paragraph">special mode and then say shift holen to enter command mode you&#8217;ll know you&#8217;re in</p>



<p class="wp-block-paragraph">command mode because you see this little colon here next to your prompt or next</p>



<p class="wp-block-paragraph">to a prompt and then I&#8217;m gonna say write quit write quit means save the file and</p>



<p class="wp-block-paragraph">and then quit if you want to quit without saving the file you can just put q but uh vim will</p>



<p class="wp-block-paragraph">complain if you&#8217;ve actually changed something and you&#8217;re refusing to save the changes so if you are</p>



<p class="wp-block-paragraph">absolutely sure you want to discard the changes just say yes i want to quit with an exclamation</p>



<p class="wp-block-paragraph">point so q exclamation hit enter now you&#8217;re out of vim hopefully you&#8217;ll never go back for the rest</p>



<p class="wp-block-paragraph">of your life sorry okay so now we know you know a lot of a lot of stuff that we can do in the</p>



<p class="wp-block-paragraph">Maybe we should learn how to install programs real fast or search for programs.</p>



<p class="wp-block-paragraph">And then we&#8217;ll do a little bit of some graphical stuff.</p>



<p class="wp-block-paragraph">Alright, so here&#8217;s the command that I wanted to remind myself of.</p>



<p class="wp-block-paragraph">So how do we search for programs?</p>



<p class="wp-block-paragraph">If you didn&#8217;t know this already, almost every single Linux distribution has a repository</p>



<p class="wp-block-paragraph">of pre-compiled programs that are open source that you can use for free.</p>



<p class="wp-block-paragraph">better and a lot safer than the old Windows method of just sort of like going</p>



<p class="wp-block-paragraph">to random websites online and downloading programs and just kind of crossing your</p>



<p class="wp-block-paragraph">fingers that you didn&#8217;t just download a virus.</p>



<p class="wp-block-paragraph">What happens is the people who run the operating system, they&#8217;ll take the source</p>



<p class="wp-block-paragraph">code for popular programs and packages.</p>



<p class="wp-block-paragraph">They&#8217;ll compile it for you.</p>



<p class="wp-block-paragraph">They&#8217;ll store the binaries, which are just the compiled executable files.</p>



<p class="wp-block-paragraph">And then you can use certain command line tools to install those programs one by one.</p>



<p class="wp-block-paragraph">those programs one by one there&#8217;s so many available that it wouldn&#8217;t make sense to install them all</p>



<p class="wp-block-paragraph">by default because you&#8217;ll probably never use the vast majority but so we have a nice package</p>



<p class="wp-block-paragraph">manager in ubuntu called apt it&#8217;s the apt package manager if you want to see more information about</p>



<p class="wp-block-paragraph">it let&#8217;s see is it called aptitude or just apt we can say man apt yeah it&#8217;s just a command line</p>



<p class="wp-block-paragraph">interface this actually i think this talks to d package under the hood but you know it&#8217;s just a</p>



<p class="wp-block-paragraph">the package manager one of the sub commands for apt is search so we can say uh launch the apt</p>



<p class="wp-block-paragraph">program with apt then we could say apt i would like you to search and what would you like app</p>



<p class="wp-block-paragraph">to search for i don&#8217;t know how about a program called mousepad it&#8217;s one of my favorite text</p>



<p class="wp-block-paragraph">editors on linux so what it does is it searches the ubuntu repositories and it tries to find you</p>



<p class="wp-block-paragraph">know a package or a program that matches and if it does it&#8217;ll show you the listing okay so what do i</p>



<p class="wp-block-paragraph">listing. Okay, so what do I have here? Mousepad is already installed on this system. Yeah,</p>



<p class="wp-block-paragraph">that makes sense because I think I was just using it. And, you know, some other stuff that</p>



<p class="wp-block-paragraph">you could find. So you can just kind of search for for anything like do you want a free accounting</p>



<p class="wp-block-paragraph">program that you don&#8217;t have to pay for? It&#8217;s not necessarily going to be the best, you know,</p>



<p class="wp-block-paragraph">but it&#8217;s free and it works and it&#8217;s good and a lot of people swear by it. Well, you can search</p>



<p class="wp-block-paragraph">and there it is i don&#8217;t have it installed on this machine but new cache free accounting software</p>



<p class="wp-block-paragraph">do you want to learn to make memes against your enemies well there&#8217;s a program for that called</p>



<p class="wp-block-paragraph">gimp it&#8217;s basically it&#8217;s kind of like at this point i think an old school photoshop clone</p>



<p class="wp-block-paragraph">not clone but alternative it&#8217;s really good for memes and there are actually a lot of very</p>



<p class="wp-block-paragraph">talented people who use gimp to do like very artistic things so there it is right there gimp</p>



<p class="wp-block-paragraph">and it&#8217;s GIMP because it&#8217;s the GNU image manipulation program.</p>



<p class="wp-block-paragraph">There&#8217;s also another one that&#8217;s a little bit more artistic, I think.</p>



<p class="wp-block-paragraph">I haven&#8217;t used it.</p>



<p class="wp-block-paragraph">I think I used it once.</p>



<p class="wp-block-paragraph">It&#8217;s called Krita.</p>



<p class="wp-block-paragraph">Oops, sorry, not apt-Krita, apt-search-Krita.</p>



<p class="wp-block-paragraph">And there it is.</p>



<p class="wp-block-paragraph">So there&#8217;s like a bunch of different choices for any idea that you could have.</p>



<p class="wp-block-paragraph">Just think of what you want.</p>



<p class="wp-block-paragraph">You want another browser, another image editor.</p>



<p class="wp-block-paragraph">You want accounting software.</p>



<p class="wp-block-paragraph">accounting software you want an audio let&#8217;s see is there I think there&#8217;s one called our door let</p>



<p class="wp-block-paragraph">me see apt search you want to like mix music at home so I want to type the name of the program</p>



<p class="wp-block-paragraph">our door but I want to see if I can find it by just searching for a music term let&#8217;s say a</p>



<p class="wp-block-paragraph">DAW digital audio workstation let me scroll up a little bit yeah there it is okay so I searched</p>



<p class="wp-block-paragraph">program that came up right here it&#8217;s like a very very very popular free and open source</p>



<p class="wp-block-paragraph">digital audio workstation with like so many tracks that you can mix and and effects and</p>



<p class="wp-block-paragraph">you can record with it and do all these crazy things um so i&#8217;m just trying to show you that</p>



<p class="wp-block-paragraph">linux is not just for you know coding and and boring stuff there&#8217;s there&#8217;s a lot of fun stuff</p>



<p class="wp-block-paragraph">on linux that you can access for free uh through these repositories okay so let&#8217;s actually install</p>



<p class="wp-block-paragraph">Suppose I&#8217;m ready to make memes against my enemies.</p>



<p class="wp-block-paragraph">So I&#8217;m going to say sudo apt install instead of search install.</p>



<p class="wp-block-paragraph">And I&#8217;m just going to type the name of the program GIMP.</p>



<p class="wp-block-paragraph">Oh wait, hang on.</p>



<p class="wp-block-paragraph">I&#8217;m not supposed to show you sudo just yet.</p>



<p class="wp-block-paragraph">So let&#8217;s do sudo, let&#8217;s do apt install GIMP.</p>



<p class="wp-block-paragraph">By the way, sudo is supposedly outdated and people are saying you should use something</p>



<p class="wp-block-paragraph">else, but I don&#8217;t know.</p>



<p class="wp-block-paragraph">Old habits die hard.</p>



<p class="wp-block-paragraph">apt install GIMP, the system is telling me that I don&#8217;t have permission to install a program</p>



<p class="wp-block-paragraph">on this machine. And that makes sense. That&#8217;s probably a good thing, right? You don&#8217;t want to</p>



<p class="wp-block-paragraph">just let any user totally, you know, redo your system. So it&#8217;s saying, you know, could not open</p>



<p class="wp-block-paragraph">the lock file permission denied. Oh, no. Unable to acquire the d package front end lock. Are you</p>



<p class="wp-block-paragraph">root? Oh, okay. So what this is basically saying is that in order for us to do root level activities,</p>



<p class="wp-block-paragraph">like install a program on the system, we need to elevate the command line to root.</p>



<p class="wp-block-paragraph">And how we do that is we pretty much just say sudo, which is the name of a program that</p>



<p class="wp-block-paragraph">helps us quickly elevate. It also actually does like a lot of other stuff, but</p>



<p class="wp-block-paragraph">for now, we&#8217;re just going to use it to elevate the command up to root.</p>



<p class="wp-block-paragraph">So if I say sudo apt install gimp, what&#8217;s happening is the sudo program gets invoked,</p>



<p class="wp-block-paragraph">and then it just executes apt install GIMP as root.</p>



<p class="wp-block-paragraph">Let me just prove to you that sudo will elevate a command.</p>



<p class="wp-block-paragraph">So if I go, who am I?</p>



<p class="wp-block-paragraph">It&#8217;ll tell you the name of the current user.</p>



<p class="wp-block-paragraph">If I say sudo who am I,</p>



<p class="wp-block-paragraph">then sudo will launch who am I as the root user.</p>



<p class="wp-block-paragraph">And then who am I should tell us,</p>



<p class="wp-block-paragraph">whoops, got to enter the sudo password.</p>



<p class="wp-block-paragraph">You actually have to be an admin to use sudo, just FYI.</p>



<p class="wp-block-paragraph">So if I say sudo who am I, notice how it prints root.</p>



<p class="wp-block-paragraph">So if I say sudo apt install gimp, it&#8217;s really just going to invoke apt install gimp as the</p>



<p class="wp-block-paragraph">root user and it should allow me to install that program.</p>



<p class="wp-block-paragraph">Gimp is already installed.</p>



<p class="wp-block-paragraph">Okay, I guess I was making memes earlier and I forgot about it.</p>



<p class="wp-block-paragraph">Well we could remove it.</p>



<p class="wp-block-paragraph">Gimp.</p>



<p class="wp-block-paragraph">Then it removes it.</p>



<p class="wp-block-paragraph">Yes.</p>



<p class="wp-block-paragraph">I don&#8217;t think I was making memes on this machine.</p>



<p class="wp-block-paragraph">I think something funny is going on here.</p>



<p class="wp-block-paragraph">And now that it&#8217;s removed, I could install it again if I wanted to.</p>



<p class="wp-block-paragraph">I could say sudo apt install Gimp, and then it might ask you to push yes and enter.</p>



<p class="wp-block-paragraph">And then it just kind of finishes.</p>



<p class="wp-block-paragraph">Also if when you&#8217;re trying to install things, you get a message that says, repository could</p>



<p class="wp-block-paragraph">like a 404 error cannot be connected to not found your repos out of date you know whatever that</p>



<p class="wp-block-paragraph">might just mean you need to update your system so i&#8217;m going to say sudo apt update telling apt that</p>



<p class="wp-block-paragraph">i would like to update its idea of all the packages and then sudo apt upgrade</p>



<p class="wp-block-paragraph">so update just contacts the server and gets an idea of what packages there are and their versions</p>



<p class="wp-block-paragraph">the system or it actually upgrades the system when you&#8217;re done with that you</p>



<p class="wp-block-paragraph">usually want to do auto remove to just kind of get rid of any junk that&#8217;s left</p>



<p class="wp-block-paragraph">over if you happen to remove things recently this stuff up here this is sort</p>



<p class="wp-block-paragraph">of like a corporate upsell you can probably ignore that at least for now</p>



<p class="wp-block-paragraph">but yeah so we know how to like do lots of stuff in the terminal just just to</p>



<p class="wp-block-paragraph">open up the let&#8217;s see we&#8217;re inside of the temp folder okay so I have the temp</p>



<p class="wp-block-paragraph">folder inside the terminal I&#8217;m gonna open up my file system here and I&#8217;m gonna</p>



<p class="wp-block-paragraph">go into the same path so we were inside of let me just show you again with PWD</p>



<p class="wp-block-paragraph">we were inside of home mic documents temp so let me go inside of the home</p>



<p class="wp-block-paragraph">folder it&#8217;s not downloads documents temp and notice how I have the same file</p>



<p class="wp-block-paragraph">I can right click on this or even double click on it and I can open it up with</p>



<p class="wp-block-paragraph">Mousepad or even this nifty little code editor called genie if you&#8217;re interested in genie</p>



<p class="wp-block-paragraph">It&#8217;s actually pretty nice pseudo apt install genie and it&#8217;ll tell me that this program is already installed</p>



<p class="wp-block-paragraph">I like to use it because you know vs code and other IDEs. They&#8217;re great for productivity</p>



<p class="wp-block-paragraph">But they kind of help you a lot and if you&#8217;re trying to learn, you know coding or whatever</p>



<p class="wp-block-paragraph">or whatever sometimes it&#8217;s a little bit better if you just use something kind of plain because</p>



<p class="wp-block-paragraph">then you&#8217;ll learn more it&#8217;s harder uh you know that&#8217;s up to you anyway so i&#8217;m gonna right click</p>



<p class="wp-block-paragraph">on this and i&#8217;m gonna say let&#8217;s open this up with the how about mousepad i guess</p>



<p class="wp-block-paragraph">now i am graphically editing uh this file because maybe maybe you want to you know edit everything</p>



<p class="wp-block-paragraph">in nano maybe you don&#8217;t maybe you only want to use the terminal when you have to but uh well</p>



<p class="wp-block-paragraph">have to but well here you are let me do a cat command let&#8217;s see my program cat</p>



<p class="wp-block-paragraph">notice how it&#8217;s the same exact file I can I don&#8217;t know maybe put some empty</p>



<p class="wp-block-paragraph">comments up above the function name for fun and save the document and then just</p>



<p class="wp-block-paragraph">kind of do the cat command again and you can see that my changes have been</p>



<p class="wp-block-paragraph">updated so you can delete in the regular file system here in XFCE the file</p>



<p class="wp-block-paragraph">thunar and there should be a symbol somewhere or if you just kind of hit the start menu let&#8217;s see</p>



<p class="wp-block-paragraph">how about office where is thunar usually oh it&#8217;s in accessories okay and then if you&#8217;re on a gnome</p>



<p class="wp-block-paragraph">uh it&#8217;s probably just called files or i forget what the name of the file system is but you know</p>



<p class="wp-block-paragraph">something that just looks like a folder um so we&#8217;ve edited that we&#8217;ve got all the basics here</p>



<p class="wp-block-paragraph">we know how to navigate we know how to get to our home folder we&#8217;re like making directories</p>



<p class="wp-block-paragraph">deleting directories removing files touching files editing files we&#8217;re doing a lot and just to let</p>



<p class="wp-block-paragraph">you know there&#8217;s like so much more you can do on the terminal for instance you can let&#8217;s see do we</p>



<p class="wp-block-paragraph">have gcc on this computer no gcc is what people use to code in c plus plus right so i&#8217;m gonna say</p>



<p class="wp-block-paragraph">package on Ubuntu called build essential.</p>



<p class="wp-block-paragraph">I think it&#8217;s singular, not plural.</p>



<p class="wp-block-paragraph">And this is sort of like a meta package, which means it&#8217;s like a dummy package</p>



<p class="wp-block-paragraph">that installs a bunch of other packages.</p>



<p class="wp-block-paragraph">So build essential.</p>



<p class="wp-block-paragraph">It&#8217;ll grab all these other programs for you for like,</p>



<p class="wp-block-paragraph">it looks like a bunch of C++ stuff and there should be like GNU Mac in there</p>



<p class="wp-block-paragraph">and some Perl stuff, I guess.</p>



<p class="wp-block-paragraph">Yeah, I&#8217;ve never actually looked at this.</p>



<p class="wp-block-paragraph">That&#8217;s not a lot of stuff that I use.</p>



<p class="wp-block-paragraph">There&#8217;s just a few things that I use in there.</p>



<p class="wp-block-paragraph">But anyway, you install that and then you&#8217;ll get GCC,</p>



<p class="wp-block-paragraph">which will help you code in C++.</p>



<p class="wp-block-paragraph">You can also do sudo apt install,</p>



<p class="wp-block-paragraph">Yasm to install your assembler.</p>



<p class="wp-block-paragraph">What else?</p>



<p class="wp-block-paragraph">So GCC and G++ and Yasm and make and an editor.</p>



<p class="wp-block-paragraph">I think that&#8217;s kind of like almost all you need.</p>



<p class="wp-block-paragraph">Well, you can install a debugger,</p>



<p class="wp-block-paragraph">Well, you can install a debugger sudo apt install</p>



<p class="wp-block-paragraph">GDB to install your GNU debugger, which is already installed.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">Anyway, well, just to let you know, we can do GCC to compile some programs.</p>



<p class="wp-block-paragraph">It&#8217;ll complain.</p>



<p class="wp-block-paragraph">We don&#8217;t have anything.</p>



<p class="wp-block-paragraph">Let&#8217;s see.</p>



<p class="wp-block-paragraph">Actually, let me go in there.</p>



<p class="wp-block-paragraph">Let me go to documents temp.</p>



<p class="wp-block-paragraph">Let&#8217;s see if it&#8217;ll compile this just as is GCC my program output.</p>



<p class="wp-block-paragraph">And I&#8217;ll just say that we want a program called main.</p>



<p class="wp-block-paragraph">It&#8217;s going to work.</p>



<p class="wp-block-paragraph">main is this going to work did it actually work oh my gosh i got it right on the first try even</p>



<p class="wp-block-paragraph">though it was an empty program doesn&#8217;t really do anything oh by the way um in linux or in the</p>



<p class="wp-block-paragraph">command line you probably will see a lot of people do this sort of thing where it&#8217;s like dot</p>



<p class="wp-block-paragraph">slash in the name of a program the thing is in order to execute a program uh i&#8217;ll tell you about</p>



<p class="wp-block-paragraph">permissions in a second first it needs permission to execute but then you need to provide a path</p>



<p class="wp-block-paragraph">path to the program. You can&#8217;t just type main as is because the system, you know, the shell is going</p>



<p class="wp-block-paragraph">to think that you&#8217;re talking about a system program somewhere. So it&#8217;s going to look in all the system</p>



<p class="wp-block-paragraph">areas and it doesn&#8217;t find a program named main. So you have to give it a path to your custom</p>



<p class="wp-block-paragraph">programs to run. So I&#8217;m going to say dot slash main. And basically remember the dot was a special</p>



<p class="wp-block-paragraph">directory that meant the current directory. So if I type dot main, it&#8217;s actually kind of the same</p>



<p class="wp-block-paragraph">home mic documents temp main.</p>



<p class="wp-block-paragraph">So if I just type this whole path right here, it runs the program</p>



<p class="wp-block-paragraph">or I can do, you know, dot slash main.</p>



<p class="wp-block-paragraph">It also runs the program.</p>



<p class="wp-block-paragraph">In both cases, it works.</p>



<p class="wp-block-paragraph">Let me edit this real fast to see if I can just get something exciting going on here.</p>



<p class="wp-block-paragraph">I&#8217;ll stream and then I&#8217;m just going to go.</p>



<p class="wp-block-paragraph">Okay, so I&#8217;m just going to like do that.</p>



<p class="wp-block-paragraph">just gonna like do that let me try to compile again gcc my program output to</p>



<p class="wp-block-paragraph">execute what called me oh what did I do wrong oh gcc is for just regular C</p>



<p class="wp-block-paragraph">programs you&#8217;re not supposed to do that I want to use G plus plus and then I&#8217;m</p>



<p class="wp-block-paragraph">gonna say standard library I don&#8217;t know C plus 21 or something std what did I do</p>



<p class="wp-block-paragraph">Is 21 not a valid year?</p>



<p class="wp-block-paragraph">I don&#8217;t even remember.</p>



<p class="wp-block-paragraph">I&#8217;ve been using C++17 forever.</p>



<p class="wp-block-paragraph">What did I do wrong?</p>



<p class="wp-block-paragraph">STD equals C++.</p>



<p class="wp-block-paragraph">Okay, 17 I know definitely works.</p>



<p class="wp-block-paragraph">What am I doing wrong here?</p>



<p class="wp-block-paragraph">Okay, so 17, I guess 19 wasn&#8217;t a thing.</p>



<p class="wp-block-paragraph">Been using 17 for a long time.</p>



<p class="wp-block-paragraph">Okay, so I just compiled the program again with the C++17.</p>



<p class="wp-block-paragraph">Well, then what the heck was I doing yesterday?</p>



<p class="wp-block-paragraph">Was I using 23?</p>



<p class="wp-block-paragraph">Hang on, sorry.</p>



<p class="wp-block-paragraph">I forgot what standard I was on yesterday.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">So then if we run the program again, it prints a message.</p>



<p class="wp-block-paragraph">So maybe I should retitle this video, your first C++ program, because that&#8217;s literally</p>



<p class="wp-block-paragraph">what we just did.</p>



<p class="wp-block-paragraph">You know, I&#8217;ll make another video.</p>



<p class="wp-block-paragraph">the basics of the Linux command line.</p>



<p class="wp-block-paragraph">And well, you&#8217;re off.</p>



<p class="wp-block-paragraph">Well, I hope you enjoyed this video and you learned a little bit of stuff.</p>



<p class="wp-block-paragraph">Keep watching all the other videos and I&#8217;ll see you in the next one.</p>



<p class="wp-block-paragraph">Hey, everybody.</p>



<p class="wp-block-paragraph">Thanks for watching this video again from the bottom of my heart.</p>



<p class="wp-block-paragraph">I really appreciate it.</p>



<p class="wp-block-paragraph">I do hope you did learn something and have some fun.</p>



<p class="wp-block-paragraph">If you could do me a please, a small little favor, could you please subscribe and follow this channel or these videos or whatever it is you do on the current social media website that you&#8217;re looking at right now.</p>



<p class="wp-block-paragraph">It would really mean the world to me and it&#8217;ll help make more videos and grow this community.</p>



<p class="wp-block-paragraph">So we&#8217;ll be able to do more videos, longer videos, better videos, or just I&#8217;ll be able to keep making videos in general.</p>



<p class="wp-block-paragraph">So please do me a kindness and subscribe.</p>



<p class="wp-block-paragraph">the middle of the night and I just wake up because I know somebody subscribed or followed.</p>



<p class="wp-block-paragraph">It just wakes me up and I get filled with joy. That&#8217;s exactly what happens every single time.</p>



<p class="wp-block-paragraph">So you could do it as a nice favor to me or you could troll me if you want to just wake me up in</p>



<p class="wp-block-paragraph">the middle of the night. Just subscribe and then I&#8217;ll just wake up. I promise that&#8217;s what will</p>



<p class="wp-block-paragraph">happen. Also, if you look at the middle of the screen right now, you should see a QR code which</p>



<p class="wp-block-paragraph">you can scan in order to go to the website, which I think is also named somewhere at the bottom of</p>



<p class="wp-block-paragraph">to my main website where you can just kind of like see all the videos i published and the services</p>



<p class="wp-block-paragraph">and tutorials and things that i offer and all that good stuff and uh if you have a suggestion</p>



<p class="wp-block-paragraph">for uh uh clarifications or errata or just future videos that you want to see please leave a comment</p>



<p class="wp-block-paragraph">or if you just want to say hey what&#8217;s up what&#8217;s going on you know just send me a comment whatever</p>



<p class="wp-block-paragraph">i also wake up for those in the middle of the night i get i wake up in a cold sweat and i&#8217;m like</p>



<p class="wp-block-paragraph">it would really mean the world to me. I would really appreciate it. So again,</p>



<p class="wp-block-paragraph">thank you so much for watching this video and enjoy the cool music as I fade into the darkness,</p>



<p class="wp-block-paragraph">which is coming for us all.</p>



<p class="wp-block-paragraph">Thank you.</p>
<p>The post <a href="https://www.NeuralLantern.com/ultimate-beginners-guide-to-linux-command-line-ubuntu-terminal-basics-more/">Ultimate Beginner&#8217;s Guide to Linux Command Line: Ubuntu Terminal Basics &amp; More</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/ultimate-beginners-guide-to-linux-command-line-ubuntu-terminal-basics-more/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Master IEEE 754 Floats: Binary to Decimal Guide</title>
		<link>https://www.NeuralLantern.com/master-ieee-754-floats-binary-to-decimal-guide/</link>
					<comments>https://www.NeuralLantern.com/master-ieee-754-floats-binary-to-decimal-guide/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Mon, 05 May 2025 01:50:17 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Conversions]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[32-bit float]]></category>
		<category><![CDATA[64-bit float]]></category>
		<category><![CDATA[binary fractions]]></category>
		<category><![CDATA[binary to decimal]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[CS tutorial]]></category>
		<category><![CDATA[decimal to binary]]></category>
		<category><![CDATA[exponent bias]]></category>
		<category><![CDATA[floating point numbers]]></category>
		<category><![CDATA[IEEE 754]]></category>
		<category><![CDATA[IEEE 754 explained]]></category>
		<category><![CDATA[number systems]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[scientific notation]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=101</guid>

					<description><![CDATA[<p>Learn IEEE 754 floating-point conversion! Step-by-step guide for 32-bit &#038; 64-bit floats, from decimal to binary. Perfect for CS students!</p>
<p>The post <a href="https://www.NeuralLantern.com/master-ieee-754-floats-binary-to-decimal-guide/">Master IEEE 754 Floats: Binary to Decimal Guide</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Master IEEE 754 Floats: Binary to Decimal Guide" width="1380" height="776" src="https://www.youtube.com/embed/pjDw2kBzSpI?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p class="wp-block-paragraph">Hey there! Ready to crack the code on IEEE 754 floating-point numbers? In this video, I break down how to convert decimals to binary and back for 32-bit and 64-bit floats with clear, easy-to-follow steps. From scientific notation to biasing exponents, I’ve got you covered with examples (like 45.84375!). Perfect for computer science students, programmers, or anyone curious about how computers store fractions. Pause, rewind, and learn at your pace! Subscribe for more, check my other videos, and drop a comment with your thoughts!</p>



<p class="wp-block-paragraph">Introduction to IEEE 754 00:00:00<br>Prerequisites for Understanding 00:01:03<br>Steps to Convert Decimal to IEEE 754 00:02:31<br>Bias and Exponent Explanation 00:03:17<br>32-bit Float Layout 00:04:09<br>Sign Bit and Fraction Bits 00:05:44<br>Example: Decimal to 32-bit Float 00:07:56<br>Converting 45.84375 to Binary 00:08:34<br>Scientific Notation for Binary 00:09:05<br>Biasing the Exponent 00:10:26<br>Placing Bits in Layout 00:11:17<br>Final 32-bit Float Representation 00:13:32<br>Example: IEEE 754 to Decimal 00:14:28<br>Extracting Sign, Exponent, Fraction 00:15:36<br>Unbiasing Exponent and Reconstructing 00:16:23<br>Converting Binary to Decimal 00:18:53<br>Introduction to 64-bit Floats 00:19:47<br>64-bit Float Layout and Bias 00:20:05<br>Example: 64-bit Float to Decimal 00:21:09<br>Processing 64-bit Float Bits 00:22:05<br>Reconstructing 64-bit Scientific Notation 00:23:26<br>Final Decimal Conversion for 64-bit 00:25:00<br>Conclusion and Recap 00:25:54<br>Call to Subscribe and Outro 00:26:36</p>



<p class="wp-block-paragraph">Thanks for watching!</p>



<p class="wp-block-paragraph">Find us on other social media here:</p>



<ul class="wp-block-list">
<li>https://www.NeuralLantern.com/social</li>
</ul>



<p class="wp-block-paragraph">Please help support us!</p>



<ul class="wp-block-list">
<li>Subscribing + Sharing on Social Media</li>



<li>Leaving a comment or suggestion</li>



<li>Subscribing to our Blog</li>



<li>Watching the main &#8220;pinned&#8221; video of this channel for offers and extras</li>
</ul>



<p class="wp-block-paragraph">Hey there! Let&#8217;s talk about IEEE 754 floating point numbers stored inside of your machine.</p>



<p class="wp-block-paragraph">What the heck am I even talking about? Well, uh, there&#8217;s a standard called IEEE 754 which governs</p>



<p class="wp-block-paragraph">how floating point numbers are stored inside of your computer on x8664 machines. So, you know,</p>



<p class="wp-block-paragraph">of watching this video you probably already know how to convert binary back and forth you know</p>



<p class="wp-block-paragraph">between binary and decimal and hopefully you understand how to do binary with fractions</p>



<p class="wp-block-paragraph">if you don&#8217;t i have other videos i&#8217;ll talk about that in a second and you also understand</p>



<p class="wp-block-paragraph">that in the machine there is like a slightly different format that&#8217;s my doggy slightly</p>



<p class="wp-block-paragraph">different format for storing signed integers in the machine okay so floating point numbers have</p>



<p class="wp-block-paragraph">an even different uh format that we have to follow and the hardware is designed that way</p>



<p class="wp-block-paragraph">hardware is designed that way so before we can really benefit you&#8217;re all gonna</p>



<p class="wp-block-paragraph">see how bad I spell okay before we can benefit from this video your prerequisite</p>



<p class="wp-block-paragraph">knowledge should be that for starters you should be able to convert back and</p>



<p class="wp-block-paragraph">forth between binary and decimal including numbers with fractions so if</p>



<p class="wp-block-paragraph">if you don&#8217;t know how to do that yet this video is is not for you just yet you</p>



<p class="wp-block-paragraph">should go check out my other videos I explain in other videos exactly how to</p>



<p class="wp-block-paragraph">do that go to the other videos come back and then check this one out after you</p>



<p class="wp-block-paragraph">know how to convert back and forth between binary and decimal with</p>



<p class="wp-block-paragraph">fractions the second thing you should know how to do before watching this</p>



<p class="wp-block-paragraph">video is convert binary numbers with fractions to scientific notation and</p>



<p class="wp-block-paragraph">and back again. Meaning you should understand scientific notation and you should also understand</p>



<p class="wp-block-paragraph">how to take a binary number with a fraction and convert it to scientific notation and then</p>



<p class="wp-block-paragraph">convert it or deconvert it back to like regular form. Again, I have another video for this,</p>



<p class="wp-block-paragraph">so if you don&#8217;t know how to do that yet, you should probably pause this video and then go</p>



<p class="wp-block-paragraph">Let&#8217;s see. For converting from a regular number to IEEE floating point number in the machine using just binary alone is the following.</p>



<p class="wp-block-paragraph">So I&#8217;m going to say basic steps. Step one, convert the decimal number to binary if needed.</p>



<p class="wp-block-paragraph">And I say if needed because I don&#8217;t know, maybe you started with a binary number so you don&#8217;t actually need to convert it.</p>



<p class="wp-block-paragraph">it but I&#8217;m just going to assume that you have a decimal number so you&#8217;re going to convert it to</p>



<p class="wp-block-paragraph">binary first then convert the binary number to scientific notation I don&#8217;t know if convert is</p>



<p class="wp-block-paragraph">the right word here because we&#8217;re not actually changing the value of the number we&#8217;re just</p>



<p class="wp-block-paragraph">changing the representation so convert it to a scientific notation form maybe would be better</p>



<p class="wp-block-paragraph">step three we&#8217;ll add a bias to the exponents of the scientific notation form what do I mean by</p>



<p class="wp-block-paragraph">notation form. What do I mean by that? You know, if you have like a binary number and it&#8217;s in</p>



<p class="wp-block-paragraph">scientific notation format, it&#8217;s going to look like this. I liked when I&#8217;m doing IEEE 754,</p>



<p class="wp-block-paragraph">I like to keep the right side of the number in decimal. I&#8217;m sorry if this confuses you, but</p>



<p class="wp-block-paragraph">it&#8217;s not really necessary to convert this to binary when we&#8217;re just trying to convert back</p>



<p class="wp-block-paragraph">and forth between IEEE. So I always say two to the something power rather than one zero to the</p>



<p class="wp-block-paragraph">something power because I want to stay in decimal. So I&#8217;ll say, you know, two to the seventh power,</p>



<p class="wp-block-paragraph">right? What this means is that seven is the exponent and I have to bias the exponent before</p>



<p class="wp-block-paragraph">I put it into the machine. So maybe it&#8217;s worth understanding or maybe copy pasting right now</p>



<p class="wp-block-paragraph">that the bias for 32-bit floating point numbers, I should probably, I&#8217;ll paste the whole thing here.</p>



<p class="wp-block-paragraph">Okay. So here&#8217;s like the format for a 32-bit floating point number. We&#8217;re good about this</p>



<p class="wp-block-paragraph">number. We&#8217;re good about this just for a second. The bias for 32-bit floating</p>



<p class="wp-block-paragraph">point number in IEEE 754 is 127. So that means I pretty much have to just take</p>



<p class="wp-block-paragraph">the number 7 and bias it by adding 127 to it. After I&#8217;ve done that I can convert</p>



<p class="wp-block-paragraph">the biased exponent to unsigned binary whole number. To an unsigned binary whole</p>



<p class="wp-block-paragraph">number. So step four here is just regular decimal to binary conversion. So I would take, you know,</p>



<p class="wp-block-paragraph">seven plus 127. The result of that, which I think is like 134, maybe we&#8217;ll just be converted into</p>



<p class="wp-block-paragraph">binary and unsigned binary integer, not two&#8217;s compliment or anything like that. Then step five</p>



<p class="wp-block-paragraph">is respect the layout. So I just, I just copy pasted the layout up above and the layout is this.</p>



<p class="wp-block-paragraph">you can see that here let me see if I just maybe paste this down at the bottom</p>



<p class="wp-block-paragraph">you can see that we actually have 32 bits here if I count them for you real</p>



<p class="wp-block-paragraph">fast we&#8217;ve got one for the sign and then we&#8217;ve got I can never remember this I</p>



<p class="wp-block-paragraph">think it&#8217;s eight for the exponent one two three four five six seven eight got</p>



<p class="wp-block-paragraph">eight bits for the exponent that means I&#8217;ve already used nine of 32 bits so</p>



<p class="wp-block-paragraph">that means I should have like 23 bits here so one two three four five six seven</p>



<p class="wp-block-paragraph">11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, just to double check.</p>



<p class="wp-block-paragraph">So we know what the sine bit is.</p>



<p class="wp-block-paragraph">Actually, we don&#8217;t yet know in this video.</p>



<p class="wp-block-paragraph">So in this video, the sine bit, it&#8217;s always going to be a zero if the number is positive</p>



<p class="wp-block-paragraph">and a one if the number is negative.</p>



<p class="wp-block-paragraph">So that&#8217;s the sine bit.</p>



<p class="wp-block-paragraph">The biased exponent bits go there.</p>



<p class="wp-block-paragraph">And then these Fs, those are just the fractional bits.</p>



<p class="wp-block-paragraph">just the, you know, like the mantissa or the mantissa part of the fraction. So imagine if we</p>



<p class="wp-block-paragraph">have a number like this, all I&#8217;m saying is we would copy paste those numbers right here.</p>



<p class="wp-block-paragraph">Notice how I&#8217;m ignoring that first one dot something, because when you put binary in</p>



<p class="wp-block-paragraph">scientific notation, the first number is always going to be a one. So it can be assumed. There&#8217;s</p>



<p class="wp-block-paragraph">no point in storing it inside the machine. And then if you don&#8217;t have enough digits to</p>



<p class="wp-block-paragraph">you will literally just pad with zeros on the right side because padding with zeros on the right side of a fraction</p>



<p class="wp-block-paragraph">doesn&#8217;t actually change the value. One, two, three, four.</p>



<p class="wp-block-paragraph">If I put the zeros on the left side of the fraction, it would make the fractional part smaller and smaller.</p>



<p class="wp-block-paragraph">So that would be bad. I don&#8217;t want to change the value.</p>



<p class="wp-block-paragraph">And this is the opposite of how you pad a whole number.</p>



<p class="wp-block-paragraph">If I put numbers on the left side of a whole number part, I&#8217;m not changing the value.</p>



<p class="wp-block-paragraph">But if I put numbers on the right side of a whole number part,</p>



<p class="wp-block-paragraph">which in this case would be the biased exponent, then I would be changing the value.</p>



<p class="wp-block-paragraph">So we wouldn&#8217;t want to do that.</p>



<p class="wp-block-paragraph">changing the value so we wouldn&#8217;t want to do that. Anyway I&#8217;m going to remove this and just stick</p>



<p class="wp-block-paragraph">with step five so let&#8217;s see 5a is place the sine bits step 5b is and I&#8217;m going to do an example</p>



<p class="wp-block-paragraph">for you don&#8217;t worry place the exponent bits and then 5c is place the fraction bits everything</p>



<p class="wp-block-paragraph">the first one dot from scientific notation form.</p>



<p class="wp-block-paragraph">Again, because the first one is implied, it will never be a zero if you&#8217;ve done it correctly.</p>



<p class="wp-block-paragraph">If you end up with a binary number that looks like this in scientific notation, then you&#8217;ve</p>



<p class="wp-block-paragraph">done something wrong because the first number is supposed to be a one.</p>



<p class="wp-block-paragraph">Okay, so we have those basic steps.</p>



<p class="wp-block-paragraph">And now let&#8217;s do an example.</p>



<p class="wp-block-paragraph">1, 2, 3 example. Let&#8217;s convert decimal to IEEE 754 32-bit float format.</p>



<p class="wp-block-paragraph">AKA single precision floating point number. Double precision floating point number is 64-bit.</p>



<p class="wp-block-paragraph">We&#8217;ll do an example for that at the very end of this, but I&#8217;m just going to stick with 32 and do</p>



<p class="wp-block-paragraph">number 45.84375, just double checking, and then we&#8217;ll convert to binary. Again, this knowledge</p>



<p class="wp-block-paragraph">is contained in a different video. So if you don&#8217;t know how to do this yet, you&#8217;ll need to go see my</p>



<p class="wp-block-paragraph">other video. And so you can see it&#8217;s, you know, 45.84375 in binary is just going to be this.</p>



<p class="wp-block-paragraph">I&#8217;ve padded it with two zeros to the left just because, I don&#8217;t know, I have a habit of wanting</p>



<p class="wp-block-paragraph">wanting everything to look like it&#8217;s inside of 8-bit chunks.</p>



<p class="wp-block-paragraph">You can see there&#8217;s 8 bits here.</p>



<p class="wp-block-paragraph">But really, I can just remove those first two numbers.</p>



<p class="wp-block-paragraph">It doesn&#8217;t matter.</p>



<p class="wp-block-paragraph">Convert the number to binary.</p>



<p class="wp-block-paragraph">Then, I have to convert the binary number to scientific notation.</p>



<p class="wp-block-paragraph">I&#8217;m going to put maybe pseudo-scientific notation</p>



<p class="wp-block-paragraph">because I&#8217;m not going to convert the right part</p>



<p class="wp-block-paragraph">where it&#8217;s the exponent into binary.</p>



<p class="wp-block-paragraph">I&#8217;m going to keep it in decimal.</p>



<p class="wp-block-paragraph">Just to clarify again,</p>



<p class="wp-block-paragraph">convert a binary number to scientific notation and you were actually going to publish it somewhere</p>



<p class="wp-block-paragraph">or give it to someone, then you should convert the right side. It&#8217;s just that I&#8217;m not going to</p>



<p class="wp-block-paragraph">because I don&#8217;t really need to convert the right side. I&#8217;m not interested in having the whole</p>



<p class="wp-block-paragraph">number in scientific notation in binary. I&#8217;m just interested in what the fractional bits are and</p>



<p class="wp-block-paragraph">then what the exponent is going to do. Like how many positions to the left or right is it actually</p>



<p class="wp-block-paragraph">going to move the decimal point? And that&#8217;s just going to be the number five, five times to the</p>



<p class="wp-block-paragraph">five you know five times to the left or to the right so I&#8217;m gonna go pseudo</p>



<p class="wp-block-paragraph">scientific notation you pretty much you know as I covered in the different video</p>



<p class="wp-block-paragraph">all we&#8217;re gonna be doing is just moving the decimal point over one two three</p>



<p class="wp-block-paragraph">four five until there&#8217;s a one in the leading spot and then account for it by</p>



<p class="wp-block-paragraph">saying times two to the fifth power to say the number is a lot bigger than it</p>



<p class="wp-block-paragraph">looks so that&#8217;s that and let&#8217;s see if there are any trailing zeros that&#8217;s</p>



<p class="wp-block-paragraph">Let&#8217;s see if there are any trailing zeros, that&#8217;s okay on the right side of the fraction.</p>



<p class="wp-block-paragraph">They don&#8217;t actually matter.</p>



<p class="wp-block-paragraph">You can also just delete them if you want.</p>



<p class="wp-block-paragraph">Then we need to bias the exponents.</p>



<p class="wp-block-paragraph">So how do we bias the exponent?</p>



<p class="wp-block-paragraph">The exponent is just the number five.</p>



<p class="wp-block-paragraph">That&#8217;s see, I was telling you like I don&#8217;t really care to convert it to binary because</p>



<p class="wp-block-paragraph">I&#8217;m just going to bias it first and then after that I&#8217;ll buy it or I&#8217;ll convert it to binary.</p>



<p class="wp-block-paragraph">So biasing it is just basically adding the bias.</p>



<p class="wp-block-paragraph">just to make sure that it&#8217;s on this page and it&#8217;s easy to see.</p>



<p class="wp-block-paragraph">So I&#8217;ll do that.</p>



<p class="wp-block-paragraph">So in the 32-bit float layout, the bias is 127.</p>



<p class="wp-block-paragraph">So I&#8217;m going to add 127 to 5.</p>



<p class="wp-block-paragraph">The final number is going to be 132.</p>



<p class="wp-block-paragraph">So that&#8217;s the biased exponent now.</p>



<p class="wp-block-paragraph">Then I convert the biased exponent to binary.</p>



<p class="wp-block-paragraph">And that&#8217;s going to be this.</p>



<p class="wp-block-paragraph">10000100.</p>



<p class="wp-block-paragraph">Then set up the layout so you don&#8217;t get confused.</p>



<p class="wp-block-paragraph">This step is crucial.</p>



<p class="wp-block-paragraph">Everyone always gets confused by the layout because like we&#8217;re human beings.</p>



<p class="wp-block-paragraph">I can&#8217;t count 32 zeros that are all like in the same area and like, you know, and not</p>



<p class="wp-block-paragraph">get confused every single time.</p>



<p class="wp-block-paragraph">I mean, I guess I won&#8217;t get confused half the time, but that&#8217;s not good enough.</p>



<p class="wp-block-paragraph">So step one is place the layout for yourself so it&#8217;s easier for you to place the bits.</p>



<p class="wp-block-paragraph">place the bits and I wrote this at the top 8 bits and 23 bits just as a reminder double check</p>



<p class="wp-block-paragraph">yourself 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3 that&#8217;s 23 bits 1 2 3 4 1 2 3 4 that&#8217;s</p>



<p class="wp-block-paragraph">8 bits we don&#8217;t need to remember that the sign bit is one bit for now it&#8217;s not too hard so now</p>



<p class="wp-block-paragraph">let&#8217;s place it so the first thing to note is that this number was actually positive positive is</p>



<p class="wp-block-paragraph">the negative sign there, but if it makes you feel better, we&#8217;ll just put a positive sign there just to clarify and be specific.</p>



<p class="wp-block-paragraph">So because the number is positive, the sign bit is going to be zero. If it were negative, it would be one.</p>



<p class="wp-block-paragraph">Then we will put the biased exponent bits. So we already converted up there. So I&#8217;m just going to copy paste it here.</p>



<p class="wp-block-paragraph">We&#8217;re pretty lucky that the bits are just as big as the number of biased exponent bits that are available.</p>



<p class="wp-block-paragraph">But suppose for the sake of argument that we had,</p>



<p class="wp-block-paragraph">the sake of argument that we had just like you know this small number here for the biased exponent</p>



<p class="wp-block-paragraph">what would you do with the remaining spaces you would just pad with zeros to the left</p>



<p class="wp-block-paragraph">because remember in whole numbers in binary and decimal you pad to the left you&#8217;re not actually</p>



<p class="wp-block-paragraph">changing the value you definitely would not want to pad to the right but you got to put</p>



<p class="wp-block-paragraph">a bit in every position it&#8217;s got to be something so i&#8217;m just going to pad with zeros</p>



<p class="wp-block-paragraph">then we take the fractional part from the scientifically notated form so that&#8217;s just</p>



<p class="wp-block-paragraph">form so that&#8217;s just this right here notice how I&#8217;m copy pasting every bit</p>



<p class="wp-block-paragraph">except for the one that starts the number I&#8217;m not going to do the one dot</p>



<p class="wp-block-paragraph">part because that&#8217;s always assumed so we don&#8217;t need to store it it wouldn&#8217;t make</p>



<p class="wp-block-paragraph">sense I&#8217;ll copy paste the fractional part and I&#8217;ll just stick it down there</p>



<p class="wp-block-paragraph">and now we have a bunch of leftover bits that we need to fill out with the</p>



<p class="wp-block-paragraph">fractional part you pad to the right not to the left so I&#8217;m just going to put</p>



<p class="wp-block-paragraph">zeros to the right because that won&#8217;t change the value of the fractional part</p>



<p class="wp-block-paragraph">Now we&#8217;ve got it. I&#8217;m just going to double check my work here.</p>



<p class="wp-block-paragraph">Oh gosh, it&#8217;s too hard to read and then a bunch of zeros. Okay.</p>



<p class="wp-block-paragraph">Then remove these spaces because now that you&#8217;ve done your layout,</p>



<p class="wp-block-paragraph">you actually want to bear in mind that the machine doesn&#8217;t have spaces.</p>



<p class="wp-block-paragraph">The machine is just, you know, a bunch of ones and zeros everywhere.</p>



<p class="wp-block-paragraph">So I&#8217;m just going to carefully remove the two spaces.</p>



<p class="wp-block-paragraph">And this is it.</p>



<p class="wp-block-paragraph">for floating point representation of the number of the decimal number positive 45.84375</p>



<p class="wp-block-paragraph">seems like a lot but it&#8217;s not too bad once you kind of get used to the format</p>



<p class="wp-block-paragraph">and the bias and you already know the other steps of you know converting decimal to binary and back</p>



<p class="wp-block-paragraph">again so let&#8217;s do another number let&#8217;s do it backwards so i&#8217;m going to open up a new tab here</p>



<p class="wp-block-paragraph">example, IEEE 754 32-bit float 2 decimal.</p>



<p class="wp-block-paragraph">Okay, so suppose we started with the following number.</p>



<p class="wp-block-paragraph">Start with this number.</p>



<p class="wp-block-paragraph">Oh my gosh, right?</p>



<p class="wp-block-paragraph">Remember the layout.</p>



<p class="wp-block-paragraph">So in the layout we have, use the layout.</p>



<p class="wp-block-paragraph">Maybe I should copy paste the layout again one more time just to make sure that it&#8217;s</p>



<p class="wp-block-paragraph">easy to see.</p>



<p class="wp-block-paragraph">it&#8217;s easy to see. So I&#8217;m going to paste it up at the top and well, no, maybe I want this because</p>



<p class="wp-block-paragraph">this is like a little bit better. I want that version. Okay. So 32 bits, a bias of 127. So</p>



<p class="wp-block-paragraph">we&#8217;re going to use the layout. I&#8217;m just going to copy paste the original number and then add</p>



<p class="wp-block-paragraph">spaces because I know, well, I guess I can copy paste the layout itself right above that number.</p>



<p class="wp-block-paragraph">I know I need a space right there that&#8217;s the sine bit and then I need a space</p>



<p class="wp-block-paragraph">after that and notice how the numbers all line up so there&#8217;s nothing missing</p>



<p class="wp-block-paragraph">just to double-check yourself okay so I have the layout I know right away that</p>



<p class="wp-block-paragraph">the number is going to be positive because the sine bit is zero sign is</p>



<p class="wp-block-paragraph">positive okay so then I need to pull the biased exponent will be biased</p>



<p class="wp-block-paragraph">the exponent bits only so I&#8217;m just going to copy paste those bits and then I&#8217;ll</p>



<p class="wp-block-paragraph">pull out the fractional part first pull out the fractional part I&#8217;m going to</p>



<p class="wp-block-paragraph">copy paste all those bits and maybe I&#8217;ll just say zero point those bits because</p>



<p class="wp-block-paragraph">that&#8217;s what I originally grabbed and I can delete all the zeros on the right</p>



<p class="wp-block-paragraph">side because again that won&#8217;t change the value of the fractional part so I&#8217;m</p>



<p class="wp-block-paragraph">going to delete make sure you&#8217;re only deleting zeros though delete that now I</p>



<p class="wp-block-paragraph">I need to unbias the biased exponents.</p>



<p class="wp-block-paragraph">First, actually, I should, well, let&#8217;s convert the biased exponent to decimal.</p>



<p class="wp-block-paragraph">A little easier.</p>



<p class="wp-block-paragraph">I guess you don&#8217;t have to do that, but it&#8217;s a little easier for me.</p>



<p class="wp-block-paragraph">Pull the biased exponent.</p>



<p class="wp-block-paragraph">So this number is going to be 132, which I think is what we had last night.</p>



<p class="wp-block-paragraph">Let me just double check that.</p>



<p class="wp-block-paragraph">132.</p>



<p class="wp-block-paragraph">Yeah.</p>



<p class="wp-block-paragraph">132, yeah so the biased exponent that we pulled out is 132 then we unbiased the</p>



<p class="wp-block-paragraph">biased exponent so just subtract the bias again in 32-bit format here the bias</p>



<p class="wp-block-paragraph">is 127 so I&#8217;m going to subtract 127 instead of adding 127 so now I know the</p>



<p class="wp-block-paragraph">real bias or sorry I know the real exponent is 5 then I can recreate the</p>



<p class="wp-block-paragraph">I&#8217;ll put sudo here just because it&#8217;s not, you know, I&#8217;m not, I&#8217;m not converting binary for,</p>



<p class="wp-block-paragraph">for the entire thing. So that means I can take the fractional part here and I can say it&#8217;s going to be</p>



<p class="wp-block-paragraph">one dot the fractional part. Maybe I should remove that zero here to make it less.</p>



<p class="wp-block-paragraph">I don&#8217;t know. Cause if I put a one there, it kind of feels like I&#8217;m saying the number is</p>



<p class="wp-block-paragraph">that it&#8217;s one dot something.</p>



<p class="wp-block-paragraph">I don&#8217;t like that I&#8217;m putting a zero there.</p>



<p class="wp-block-paragraph">I&#8217;m just gonna erase it</p>



<p class="wp-block-paragraph">because it&#8217;s really gonna end up being a one.</p>



<p class="wp-block-paragraph">And if I say pull the fractional part</p>



<p class="wp-block-paragraph">and I put a one there,</p>



<p class="wp-block-paragraph">then it doesn&#8217;t it kind of sound like</p>



<p class="wp-block-paragraph">I&#8217;m pulling the one from somewhere?</p>



<p class="wp-block-paragraph">No, the one is implied.</p>



<p class="wp-block-paragraph">Anyway, so now I can recreate the number</p>



<p class="wp-block-paragraph">in pseudo scientific notation.</p>



<p class="wp-block-paragraph">I can say times two to the something power.</p>



<p class="wp-block-paragraph">We know that the exponent is five.</p>



<p class="wp-block-paragraph">Again, it&#8217;s pseudo scientific notation</p>



<p class="wp-block-paragraph">because if five we&#8217;re gonna do the complete,</p>



<p class="wp-block-paragraph">complete, you know, true scientific notation. The right side should also be in binary, but I&#8217;m not</p>



<p class="wp-block-paragraph">going to do it. I&#8217;m a little bit lazy because we don&#8217;t need that IEEE. So it&#8217;s going to be two to</p>



<p class="wp-block-paragraph">the fifth power. Then if I undo the scientific notation, I&#8217;m really just going to take this</p>



<p class="wp-block-paragraph">scientifically notated version and I&#8217;m going to say, well, I&#8217;m going to move the decimal point to</p>



<p class="wp-block-paragraph">the right five times because that&#8217;s what the part on the right says. So I&#8217;m going to go one, two,</p>



<p class="wp-block-paragraph">1, 2, 3, 4, 5, stick it there, remove the original decimal point, and then I can remove</p>



<p class="wp-block-paragraph">the exponent part. So then let me just double check my work. 1, 0, 1, 1, 0, 1, 1, 1, 0, 1. Okay.</p>



<p class="wp-block-paragraph">So we&#8217;ve got that now. Then all we have to do is convert this number from binary to decimal.</p>



<p class="wp-block-paragraph">The final number here is just, you know, it&#8217;s going to be the same number that we worked with</p>



<p class="wp-block-paragraph">number that we worked with previously so I&#8217;m just going to copy paste it there is</p>



<p class="wp-block-paragraph">you know of course this video is not about converting back and forth from</p>



<p class="wp-block-paragraph">binary to decimal with fractions check out my other video if you want to learn</p>



<p class="wp-block-paragraph">how to do that but once we do that you know this number becomes that number</p>



<p class="wp-block-paragraph">and and now we know how to convert back and forth between a decimal number and</p>



<p class="wp-block-paragraph">for 32-bit floats in the machine.</p>



<p class="wp-block-paragraph">No problem.</p>



<p class="wp-block-paragraph">A lot of steps, but no problem once you understand them.</p>



<p class="wp-block-paragraph">Okay, now let&#8217;s do an example</p>



<p class="wp-block-paragraph">with 64-bit floating point numbers.</p>



<p class="wp-block-paragraph">Honestly, this is not gonna be more difficult.</p>



<p class="wp-block-paragraph">In 64-bit floats, the idea and the format and the steps,</p>



<p class="wp-block-paragraph">it&#8217;s all gonna be the exact same thing.</p>



<p class="wp-block-paragraph">It&#8217;s just that we have more bits</p>



<p class="wp-block-paragraph">for the biased exponent and the fraction,</p>



<p class="wp-block-paragraph">and then the bias itself will be a little bit higher.</p>



<p class="wp-block-paragraph">So let me copy paste the format for you to see.</p>



<p class="wp-block-paragraph">at for you to see. So in IEEE 64-bit floats, IEEE 64-bit float, well IEEE 754, 64-bit float,</p>



<p class="wp-block-paragraph">you know we refer to these floats as doubles right double precision floating point numbers.</p>



<p class="wp-block-paragraph">Notice how instead of 8 bits for the biased exponent we have 11 so we can represent a much</p>



<p class="wp-block-paragraph">notice how for the uh the fraction part instead of having 23 bits we have 52 bits so we can also</p>



<p class="wp-block-paragraph">represent much more precisely that&#8217;s really the only difference let&#8217;s uh oh sorry the other</p>



<p class="wp-block-paragraph">difference is also that the bias is now equal to 1023 instead of 127 so what is that like</p>



<p class="wp-block-paragraph">10 times larger of a number that we can represent or something like that so mostly we get more</p>



<p class="wp-block-paragraph">If you don&#8217;t like it, sorry, it&#8217;s the way it is.</p>



<p class="wp-block-paragraph">It&#8217;s in the hardware.</p>



<p class="wp-block-paragraph">So let&#8217;s do an example for a 64-bit float for a double.</p>



<p class="wp-block-paragraph">64-bit example.</p>



<p class="wp-block-paragraph">Let&#8217;s say we started with the following number.</p>



<p class="wp-block-paragraph">Inside of the machine.</p>



<p class="wp-block-paragraph">Like we looked inside of the machine and we grabbed these bits.</p>



<p class="wp-block-paragraph">And I&#8217;ll get rid of the spaces.</p>



<p class="wp-block-paragraph">So we have like a giant, big, huge number.</p>



<p class="wp-block-paragraph">We have like a giant big huge number.</p>



<p class="wp-block-paragraph">We&#8217;re trying to figure out, you know, what is this number in decimal.</p>



<p class="wp-block-paragraph">So I&#8217;m going to add spaces to respect the layout.</p>



<p class="wp-block-paragraph">I&#8217;m going to just copy paste the layout right here.</p>



<p class="wp-block-paragraph">I&#8217;m going to say respect the layout.</p>



<p class="wp-block-paragraph">I&#8217;m going to paste it and then that helps me line everything up.</p>



<p class="wp-block-paragraph">So I&#8217;m going to say the sine bit is the first bit and then I&#8217;ll put a space there so I know.</p>



<p class="wp-block-paragraph">All right, the sine bit is a one.</p>



<p class="wp-block-paragraph">That means it&#8217;s going to be a negative number.</p>



<p class="wp-block-paragraph">The biased exponent bits are there.</p>



<p class="wp-block-paragraph">The fractional bits are there.</p>



<p class="wp-block-paragraph">bits are there so well first thing I can just do is say that the sine is going to be negative</p>



<p class="wp-block-paragraph">because the sine bit is a one</p>



<p class="wp-block-paragraph">and then I&#8217;ll pull the biased exponent bits which is going to be this number right here</p>



<p class="wp-block-paragraph">should pull the fraction bits next. Fraction bits are just here I&#8217;m gonna</p>



<p class="wp-block-paragraph">copy paste those here and then I can remove the zeros. Be very careful you&#8217;re</p>



<p class="wp-block-paragraph">not removing any ones. So there was a lot of wasted bits there. That&#8217;s okay. I&#8217;ll</p>



<p class="wp-block-paragraph">convert the biased exponent to decimal. So that&#8217;s going to be…</p>



<p class="wp-block-paragraph">I think and I did not do that in my head.</p>



<p class="wp-block-paragraph">I have an answer sheet.</p>



<p class="wp-block-paragraph">Don&#8217;t worry.</p>



<p class="wp-block-paragraph">I&#8217;m not that cool.</p>



<p class="wp-block-paragraph">Then we&#8217;ll unbiased or de-bias unbiased the biased exponents by just subtracting the bias.</p>



<p class="wp-block-paragraph">Remember in this 64 bit format, the bias is 1023.</p>



<p class="wp-block-paragraph">So that means I got to take 1031 minus 1023 and that will be equal to 8.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">Okay, now we kind of have everything we need to sort of reconstruct the scientific notation part, right?</p>



<p class="wp-block-paragraph">We have the fraction bits, that&#8217;s the most important part.</p>



<p class="wp-block-paragraph">Oh, and then also the sine bits.</p>



<p class="wp-block-paragraph">So I can say negative something.</p>



<p class="wp-block-paragraph">It&#8217;s obviously going to be one dot something because even though the number is negative,</p>



<p class="wp-block-paragraph">it will still always start with a one.</p>



<p class="wp-block-paragraph">That rule doesn&#8217;t change.</p>



<p class="wp-block-paragraph">Negative one dot something and I&#8217;ll just paste the, whoops, paste the fraction bits.</p>



<p class="wp-block-paragraph">I think I did paste the right thing.</p>



<p class="wp-block-paragraph">right thing so we paste the fraction bits and then we have to use the regular exponent the</p>



<p class="wp-block-paragraph">unbiased exponent the non-biased exponent two times times two to the oops times two to the eighth power</p>



<p class="wp-block-paragraph">now this is our number in scientific notation um</p>



<p class="wp-block-paragraph">convert to scientific notation i&#8217;ll put p for pseudo scientific notation</p>



<p class="wp-block-paragraph">and then now we have to convert to just regular format okay so I&#8217;m going to</p>



<p class="wp-block-paragraph">copy paste this right here and if it&#8217;s 2 to the eighth power that means the real</p>



<p class="wp-block-paragraph">number is going to be bigger than it looks in scientific notation even though</p>



<p class="wp-block-paragraph">if you are very familiar with scientific notation you kind of already know that</p>



<p class="wp-block-paragraph">it looks big but you know if we just if we&#8217;re only talking about the bits on the</p>



<p class="wp-block-paragraph">1, 2, 3, 4, 5, 6, 7, 8.</p>



<p class="wp-block-paragraph">Put the decimal point there.</p>



<p class="wp-block-paragraph">Remove the original decimal point.</p>



<p class="wp-block-paragraph">Now we no longer need 2 to the 8th power.</p>



<p class="wp-block-paragraph">And again, just as a reminder, if it was 2 to the negative 8th power,</p>



<p class="wp-block-paragraph">you would be moving the decimal point in the other direction.</p>



<p class="wp-block-paragraph">So now we&#8217;ve got this number 111, 010101, 0101, 0101, 0101.</p>



<p class="wp-block-paragraph">Then a 0.01.</p>



<p class="wp-block-paragraph">Okay, so then convert to decimal.</p>



<p class="wp-block-paragraph">doesn&#8217;t talk about how to convert back and forth from binary to decimal find my other videos but</p>



<p class="wp-block-paragraph">basically uh it&#8217;s going to end up being six uh negative four six nine point two five</p>



<p class="wp-block-paragraph">okay we now have done a quick practice starting with a giant number of bits and slowly converting</p>



<p class="wp-block-paragraph">them to the real uh floating point number in decimal that uh that they represent i&#8217;m not going</p>



<p class="wp-block-paragraph">going to do another number in the reverse direction because we already did that for 32 bits</p>



<p class="wp-block-paragraph">and again with 64 bits the only real difference is just you have more exponent and fraction bits</p>



<p class="wp-block-paragraph">and the bias is a higher number and that&#8217;s it so like all the other steps are just the same</p>



<p class="wp-block-paragraph">I just wanted to show you one time with a 64-bit number in one direction but</p>



<p class="wp-block-paragraph">I think at this point we&#8217;re good thank you so much for watching this video I hope you learned</p>



<p class="wp-block-paragraph">had a little bit of fun. I&#8217;ll see you in the next video.</p>



<p class="wp-block-paragraph">and grow this community so we&#8217;ll be able to do more videos, longer videos, better videos,</p>



<p class="wp-block-paragraph">or just I&#8217;ll be able to keep making videos in general. So please do me a kindness and subscribe.</p>



<p class="wp-block-paragraph">You know, sometimes I&#8217;m sleeping in the middle of the night and I just wake up because I know</p>



<p class="wp-block-paragraph">somebody subscribed or followed. It just wakes me up and I get filled with joy. That&#8217;s exactly what</p>



<p class="wp-block-paragraph">happens every single time. So you could do it as a nice favor to me or you could troll me if you</p>



<p class="wp-block-paragraph">want to just wake me up in the middle of the night, just subscribe and then I&#8217;ll just wake up.</p>



<p class="wp-block-paragraph">just wake up I promise that&#8217;s what will happen also if you look at the middle of</p>



<p class="wp-block-paragraph">the screen right now you should see a QR code which you can scan in order to go</p>



<p class="wp-block-paragraph">to the website which I think is also named somewhere at the bottom of this</p>



<p class="wp-block-paragraph">video and it&#8217;ll take you to my main website where you can just kind of like</p>



<p class="wp-block-paragraph">see all the videos I published and the services and tutorials and things that I</p>



<p class="wp-block-paragraph">offer and all that good stuff and if you have a suggestion for clarifications or</p>



<p class="wp-block-paragraph">or errata or just future videos that you want to see please leave a comment or if you just want to</p>



<p class="wp-block-paragraph">say hey what&#8217;s up what&#8217;s going on you know just send me a comment whatever I also wake up for</p>



<p class="wp-block-paragraph">those in the middle of the night I get I wake up in a cold sweat and I&#8217;m like it would really it</p>



<p class="wp-block-paragraph">really mean the world to me I would really appreciate it so again thank you so much for</p>



<p class="wp-block-paragraph">watching this video and um enjoy the cool music as as I fade into the darkness which is coming for us</p>



<p class="wp-block-paragraph">Thank you.</p>
<p>The post <a href="https://www.NeuralLantern.com/master-ieee-754-floats-binary-to-decimal-guide/">Master IEEE 754 Floats: Binary to Decimal Guide</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/master-ieee-754-floats-binary-to-decimal-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Master Binary Scientific Notation (with Fun Examples!)</title>
		<link>https://www.NeuralLantern.com/how-to-master-binary-scientific-notation-with-fun-examples/</link>
					<comments>https://www.NeuralLantern.com/how-to-master-binary-scientific-notation-with-fun-examples/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Sun, 04 May 2025 06:24:32 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Conversions]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[base-2 notation]]></category>
		<category><![CDATA[binary fractions]]></category>
		<category><![CDATA[binary math]]></category>
		<category><![CDATA[binary numbers]]></category>
		<category><![CDATA[binary scientific notation]]></category>
		<category><![CDATA[coding for beginners]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[decimal to binary]]></category>
		<category><![CDATA[floating-point representation]]></category>
		<category><![CDATA[IEEE 754]]></category>
		<category><![CDATA[number systems]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[scientific notation]]></category>
		<category><![CDATA[tech tutorials]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=99</guid>

					<description><![CDATA[<p>Master binary scientific notation with this fun, beginner-friendly guide! Learn to represent binary numbers with fractions for IEEE 754 and computer science. Clear examples show how to handle large and small numbers in base-2. Perfect for students and coders! Subscribe for more tech tutorials.</p>
<p>The post <a href="https://www.NeuralLantern.com/how-to-master-binary-scientific-notation-with-fun-examples/">How to Master Binary Scientific Notation (with Fun Examples!)</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="How to Master Binary Scientific Notation (with Fun Examples!)" width="1380" height="776" src="https://www.youtube.com/embed/GJKxf_-MZiY?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p class="wp-block-paragraph">Ready to conquer binary scientific notation? Let’s make it fun and simple! In this video, I walk you through how to represent binary numbers with fractions in scientific notation—a must-know skill for computer science, programming, and understanding IEEE 754 floating-point representation. We start with the basics of scientific notation in decimal (think 8.54 × 10⁵), then dive into binary with clear, step-by-step examples. You’ll learn how to handle large and small binary numbers, move decimal points, and use base-2 like a champ. Whether you’re a student, coder, or just curious about how computers process numbers, this video has you covered!</p>



<p class="wp-block-paragraph">I’ll show you practical examples, like converting huge binary numbers and tiny fractions, plus tips to avoid common mistakes (like mixing decimal and binary notation). By the end, you’ll be ready to tackle binary in IEEE 754 or impress your friends with your number-crunching skills. Subscribe for more tech tutorials, and hit that bell to stay updated! Visit my website (link below) for more resources, and leave a comment with your questions or video suggestions—I read every one! Let’s keep learning and having fun with tech together!</p>



<p class="wp-block-paragraph">Introduction to Binary Scientific Notation 00:00:00<br>Purpose of Binary Representation 00:00:12<br>Overview of Scientific Notation 00:00:41<br>Rules for Scientific Notation 00:01:12<br>Decimal Scientific Notation Example 00:02:26<br>Practice with Large Decimal Number 00:04:12<br>Practice with Small Decimal Number 00:05:21<br>Binary Scientific Notation Concept 00:06:32<br>Binary Number Representation Rules 00:07:28<br>Large Binary Number Example 00:08:24<br>Small Binary Number Example 00:09:31<br>Mixing Binary and Decimal Notation 00:12:54<br>Pure Binary Scientific Notation 00:13:04<br>Connection to IEEE 754 00:13:48<br>Conclusion and Call to Action 00:14:21<br>Engagement and Website Promotion 00:15:32</p>



<p class="wp-block-paragraph">Thanks for watching!</p>



<p class="wp-block-paragraph">Find us on other social media here:</p>



<ul class="wp-block-list">
<li>https://www.NeuralLantern.com/social</li>
</ul>



<p class="wp-block-paragraph">Please help support us!</p>



<ul class="wp-block-list">
<li>Subscribing + Sharing on Social Media</li>



<li>Leaving a comment or suggestion</li>



<li>Subscribing to our Blog</li>



<li>Watching the main &#8220;pinned&#8221; video of this channel for offers and extras</li>
</ul>



<p class="wp-block-paragraph">Hey there! Let&#8217;s talk about representing binary numbers with fractions in scientific notation.</p>



<p class="wp-block-paragraph">Why would you need to do this? Probably the best use that I can think of off the top of my head</p>



<p class="wp-block-paragraph">is being able to represent binary numbers with fractions inside your machine in a format known</p>



<p class="wp-block-paragraph">It&#8217;s just a crucial step before you can represent numbers inside your machine using IEEE 754.</p>



<p class="wp-block-paragraph">Okay, so first off, let me just show you a little bit here about scientific notation.</p>



<p class="wp-block-paragraph">So you probably have seen something like this before where it&#8217;s like 8.3873,</p>



<p class="wp-block-paragraph">and then you&#8217;ll see like a multiplier times 10 to the fifth power, right?</p>



<p class="wp-block-paragraph">I can&#8217;t really type this out very well, so maybe I could just draw it for a second, you know.</p>



<p class="wp-block-paragraph">well so maybe I could just draw it for a second you know 8.54 times 10 to the fifth power right</p>



<p class="wp-block-paragraph">that&#8217;s what I&#8217;m trying to convey but anyway so about scientific notation itself it&#8217;s standardized</p>



<p class="wp-block-paragraph">so that it&#8217;s easier to use and that is you know it&#8217;s just like faster for everyone to understand</p>



<p class="wp-block-paragraph">and there&#8217;s less confusion part of the standard is that you always want to have a number on the</p>



<p class="wp-block-paragraph">that is between 1 and 9 inclusive. You don&#8217;t ever actually want to have a 0 there that would be bad.</p>



<p class="wp-block-paragraph">You don&#8217;t want to have a 10 or anything greater that would also be bad. You just want to have</p>



<p class="wp-block-paragraph">1, 2, 3, 4, 5, 6, 7, 8, 9 on the left side. And then on the fractional side,</p>



<p class="wp-block-paragraph">you want to have a number that just kind of like helps you represent the entire</p>



<p class="wp-block-paragraph">original number without losing precision. And then on the right side, you want a number,</p>



<p class="wp-block-paragraph">a number, let&#8217;s say like x to the y power, where x is the base of the number system you&#8217;re working</p>



<p class="wp-block-paragraph">in. So this is decimal. The base for decimal is 10. So we&#8217;re going to say 10 to the something</p>



<p class="wp-block-paragraph">power. What is the power? The power here helps you understand how big or small the number on</p>



<p class="wp-block-paragraph">the left really is. That&#8217;s kind of one of the benefits of scientific notation. It seems to</p>



<p class="wp-block-paragraph">help you understand a little bit more of how big or how small a number is rather than exactly</p>



<p class="wp-block-paragraph">than exactly down to you know the last digit what what is the number precisely so we could say for</p>



<p class="wp-block-paragraph">now it focuses more on largeness or smallness than preciseness what number are we actually</p>



<p class="wp-block-paragraph">representing with this in scientific notation well times 10 to the fifth power just means move the</p>



<p class="wp-block-paragraph">decimal point over a certain number of times so uh you know that&#8217;s why we have 10 to the something</p>



<p class="wp-block-paragraph">go left or right in a base 10 number you&#8217;re looking at a different number that has a factor</p>



<p class="wp-block-paragraph">of 10 for its strength in either direction like multiply by 10 multiply by 10 multiply by 10</p>



<p class="wp-block-paragraph">or divide by 10 divide by 10 divide by 10 in the other direction so this means we want to move the</p>



<p class="wp-block-paragraph">decimal point five times to the right to increase the strength of the number times five so one two</p>



<p class="wp-block-paragraph">three four five if we put the decimal number there then this is the number we were going to represent</p>



<p class="wp-block-paragraph">number we were going to represent originally so if somebody says hey give me this number 838730</p>



<p class="wp-block-paragraph">and put it in scientific notation then you your first instinct is to say all right let&#8217;s uh type</p>



<p class="wp-block-paragraph">that number out and we&#8217;ll put like a dot zero there and it will just we&#8217;ll move the decimal</p>



<p class="wp-block-paragraph">point over until there&#8217;s only one digit um and it&#8217;s a you know somewhere between a one and a nine</p>



<p class="wp-block-paragraph">three four five times over in order to get the decimal point there so that</p>



<p class="wp-block-paragraph">means it&#8217;s going to be this times 10 to the fifth power because we moved it over</p>



<p class="wp-block-paragraph">five times and you can see that&#8217;s the original number that I showed you these</p>



<p class="wp-block-paragraph">zeros at the very end they don&#8217;t actually mean anything so we can omit</p>



<p class="wp-block-paragraph">them probably a smarter idea to omit them and that&#8217;s why we see numbers that</p>



<p class="wp-block-paragraph">way okay so keep that in mind there&#8217;s only one digit let&#8217;s maybe do like</p>



<p class="wp-block-paragraph">practice number here I have a couple practice numbers written down already</p>



<p class="wp-block-paragraph">let&#8217;s see so we&#8217;ll start with this number a huge gigantic number just to</p>



<p class="wp-block-paragraph">practice if we copy paste this down to the next line and then we decide all</p>



<p class="wp-block-paragraph">right how many times do we need to move the decimal point to get the decimal</p>



<p class="wp-block-paragraph">point right there so that the two is the first number remember one to nine</p>



<p class="wp-block-paragraph">inclusive so I&#8217;ll just I&#8217;ll use two decimal points so I can count more</p>



<p class="wp-block-paragraph">9, 10, 11, 12, 13.</p>



<p class="wp-block-paragraph">So that means I did 13 moves.</p>



<p class="wp-block-paragraph">I&#8217;ll put 13 right here so I don&#8217;t forget.</p>



<p class="wp-block-paragraph">Times 10 to the 13th power.</p>



<p class="wp-block-paragraph">And the 13 is positive because when we&#8217;re looking at the scientifically notated format</p>



<p class="wp-block-paragraph">of the same number, you know, 2 point something is way smaller than the original number.</p>



<p class="wp-block-paragraph">So we want the scientifically notated format or form to get bigger in order to reach this</p>



<p class="wp-block-paragraph">number.</p>



<p class="wp-block-paragraph">in order to reach this number so that means 10 times sorry times 10 to a positive number positive</p>



<p class="wp-block-paragraph">means it&#8217;ll be bigger in its original form okay so now let&#8217;s do another practice number</p>



<p class="wp-block-paragraph">let&#8217;s do a number that&#8217;s really really really small like you&#8217;re inside of inner space or</p>



<p class="wp-block-paragraph">something so we start up with this number and we still want to have a number between</p>



<p class="wp-block-paragraph">rewrite it here I really want to have eight point something because that&#8217;s the first number that&#8217;s</p>



<p class="wp-block-paragraph">bigger than zero that I can see so again I&#8217;m using two decimal points so that it&#8217;s easy for me to</p>



<p class="wp-block-paragraph">count I&#8217;m going to go one two three four five six seven I had to move it seven times so it&#8217;s going</p>



<p class="wp-block-paragraph">to be negative seven is going to be the exponent so you know raised something raised to the negative</p>



<p class="wp-block-paragraph">seven it&#8217;s still going to be 10 to the negative seven that I multiply it by so then I&#8217;ll say get</p>



<p class="wp-block-paragraph">And now this is the same number represented in scientific notation.</p>



<p class="wp-block-paragraph">It should have all the same digits.</p>



<p class="wp-block-paragraph">The decimal point basically should just be moved.</p>



<p class="wp-block-paragraph">Of course, you know, when you represent in scientific notation,</p>



<p class="wp-block-paragraph">depending on what standard you&#8217;re working with,</p>



<p class="wp-block-paragraph">you might actually omit some of the numbers at the very end of the fraction here.</p>



<p class="wp-block-paragraph">But that&#8217;s why we say this is kind of more to impress upon you the smallness or largeness of a number</p>



<p class="wp-block-paragraph">rather than represent the number exactly precisely.</p>



<p class="wp-block-paragraph">okay so we got that two practices in there how can we do this same exact concept in binary</p>



<p class="wp-block-paragraph">well keep in mind in binary binary is a base two number this video is not about binary conversion</p>



<p class="wp-block-paragraph">as a whole number or binary with fraction let&#8217;s just pretend that we already know how to do that</p>



<p class="wp-block-paragraph">and we have a binary number to start off with so let me grab my example number here</p>



<p class="wp-block-paragraph">have some kind of a binary number with a fraction, which you can do if you don&#8217;t understand how to do</p>



<p class="wp-block-paragraph">this part yet from decimal with a fraction to binary with a fraction or back and forth.</p>



<p class="wp-block-paragraph">See my other videos. For now, we&#8217;ll assume you can do this. So how can we get this in scientific</p>



<p class="wp-block-paragraph">notation? So the first thing we have to understand is that it&#8217;s going to be, you know, some number</p>



<p class="wp-block-paragraph">right because that was the format we used before the number should only start with a one it should</p>



<p class="wp-block-paragraph">never even start with a zero remember in binary we can only use ones and zeros before i said here</p>



<p class="wp-block-paragraph">let me just show you this real fast again before i said the starting number has to be one through</p>



<p class="wp-block-paragraph">nine inclusive that was because in decimal we have zero one two three four five six seven eight nine</p>



<p class="wp-block-paragraph">be only use you know one two three five six seven eight nine so but in binary um i&#8217;ll put like</p>



<p class="wp-block-paragraph">a character set like the available characters we can use to represent the numbers in decimal</p>



<p class="wp-block-paragraph">so in binary the care set that we can use is just you know a zero and a one only but the same rule</p>



<p class="wp-block-paragraph">the one so that means the first number always has to be one it has to be always one dot something</p>



<p class="wp-block-paragraph">for our purposes to represent the same number in scientific notation so it&#8217;s going to be</p>



<p class="wp-block-paragraph">this and obviously that one has to be it it cannot ever be a zero so i&#8217;m going to put the</p>



<p class="wp-block-paragraph">decimal point there uh and then i&#8217;m just going to count like how much did i actually move the</p>



<p class="wp-block-paragraph">seven eight nine ten eleven twelve thirteen fourteen fifteen six just fifteen just fifteen not</p>



<p class="wp-block-paragraph">sixteen so i&#8217;m going to put times something to the fifteen power and remove that other decimal</p>



<p class="wp-block-paragraph">point and then the base is two so it&#8217;s going to be two to the fifteenth power</p>



<p class="wp-block-paragraph">so now maybe i should move that up a little bit</p>



<p class="wp-block-paragraph">gigantic number uh in scientific notation it&#8217;s going to look a little smaller but then the times</p>



<p class="wp-block-paragraph">base to the 15th power is going to help us understand how big it is oh it&#8217;s like pretty big</p>



<p class="wp-block-paragraph">let&#8217;s do the same thing backwards let&#8217;s say that we wanted to start off with a very very small</p>



<p class="wp-block-paragraph">number so it&#8217;s like you know a zero point something in binary so you can imagine if this is like one</p>



<p class="wp-block-paragraph">256 that&#8217;s probably going to be a number that&#8217;s no bigger than or just like slightly bigger than</p>



<p class="wp-block-paragraph">256 so it&#8217;s going to be like kind of a small number right well we&#8217;ll do the same thing just</p>



<p class="wp-block-paragraph">copy to another line and then make sure that the decimal point sits in a place where there&#8217;s always</p>



<p class="wp-block-paragraph">a one at the start</p>



<p class="wp-block-paragraph">and then just count the number of times you moved</p>



<p class="wp-block-paragraph">number of times you moved the number oh I guess before we would have possibly</p>



<p class="wp-block-paragraph">deleted numbers on the right if we were gonna reduce precision in this case</p>



<p class="wp-block-paragraph">after we count the numbers we&#8217;re gonna remove everything to the left of the one</p>



<p class="wp-block-paragraph">so that the one is in the first position and I&#8217;ll just go ahead and do it okay so</p>



<p class="wp-block-paragraph">how many times do we move it one two three four five six seven eight that&#8217;s</p>



<p class="wp-block-paragraph">eight times so I&#8217;m gonna put an eight there just to remind myself that there</p>



<p class="wp-block-paragraph">will be an eight I&#8217;ll remove all the stuff at the beginning that doesn&#8217;t</p>



<p class="wp-block-paragraph">all the stuff at the beginning that doesn&#8217;t matter anymore and it&#8217;s going to be times two because</p>



<p class="wp-block-paragraph">that&#8217;s our base to the eighth power but the original number is a lot smaller than the</p>



<p class="wp-block-paragraph">scientifically notated number looks so that means we have to put a negative eight because remember</p>



<p class="wp-block-paragraph">when you say times let me just show you this on a calculator when we say let&#8217;s let&#8217;s go back to</p>



<p class="wp-block-paragraph">fifth power then you know that we&#8217;re just basically adding four zeros right so</p>



<p class="wp-block-paragraph">like we have five total zeros so we&#8217;re adding four zeros to the ten but if we</p>



<p class="wp-block-paragraph">did to the negative five power we&#8217;re gonna be like dividing it by ten a bunch</p>



<p class="wp-block-paragraph">of times so instead of multiplying it by ten for a total of five times we&#8217;re</p>



<p class="wp-block-paragraph">gonna divide by ten so then the number gets really really really small so that</p>



<p class="wp-block-paragraph">means when we say two to the negative eight power we&#8217;re gonna be dividing it</p>



<p class="wp-block-paragraph">We&#8217;re going to be dividing it by two that many times.</p>



<p class="wp-block-paragraph">And so we end up with a really, really, really small number.</p>



<p class="wp-block-paragraph">Isn&#8217;t that what I kind of said?</p>



<p class="wp-block-paragraph">Let&#8217;s see.</p>



<p class="wp-block-paragraph">I mean, like, not exactly, but, you know, it&#8217;s like 0.003 and then some numbers after that.</p>



<p class="wp-block-paragraph">Didn&#8217;t I say one divided by 256?</p>



<p class="wp-block-paragraph">It&#8217;s 0.003 and then some numbers.</p>



<p class="wp-block-paragraph">So this number is just a little bit bigger than 0.003.</p>



<p class="wp-block-paragraph">Nine.</p>



<p class="wp-block-paragraph">Let&#8217;s see how much bigger it is.</p>



<p class="wp-block-paragraph">bigger it is point three six two five what</p>



<p class="wp-block-paragraph">oh because i&#8217;m not i&#8217;m not including the the part on the left that we will multiply it by so if i</p>



<p class="wp-block-paragraph">you know if i did some like binary up here and i was in binary mode then it would probably make</p>



<p class="wp-block-paragraph">more sense it ended up being exactly the same exact number that&#8217;s why i was confused because</p>



<p class="wp-block-paragraph">if we just type that part on the right side then it really is going to be one over 256.</p>



<p class="wp-block-paragraph">Anyway, long story short, we have this number here, the fractional part, and then we&#8217;re</p>



<p class="wp-block-paragraph">going to multiply it by two to the something power.</p>



<p class="wp-block-paragraph">Notice something in particular that I&#8217;m doing, which is probably my mistake, but I kind of</p>



<p class="wp-block-paragraph">like doing it this way.</p>



<p class="wp-block-paragraph">Notice how the left part is in binary and the right part is in decimal.</p>



<p class="wp-block-paragraph">There&#8217;s no number two in binary or no number eight in binary.</p>



<p class="wp-block-paragraph">numbers like this to scientific notation so that you can convert a binary number to i triple e</p>



<p class="wp-block-paragraph">floating point number this is as far as you really need to go but if you truly want to represent a</p>



<p class="wp-block-paragraph">binary number in scientific notation then you should also convert all of the relevant parts</p>



<p class="wp-block-paragraph">so how do we represent uh the number two in binary it&#8217;s going to be one zero how do we represent the</p>



<p class="wp-block-paragraph">number eight in binary it&#8217;s going to be one two four eight it&#8217;s going to be that so uh you know</p>



<p class="wp-block-paragraph">big number times 10 in binary is still the number two to the something power the negative 1000 in</p>



<p class="wp-block-paragraph">binary power is going to be you know eight the negative eight power so this is great if you just</p>



<p class="wp-block-paragraph">want to write an entire number in scientific notation but uh you know in probably my next</p>



<p class="wp-block-paragraph">video when we talk about ieee 754 notation this is as far as you really need to go</p>



<p class="wp-block-paragraph">eight number into a a whole number in binary and then putting that somewhere but so just</p>



<p class="wp-block-paragraph">forget about this for now keep in mind this is how far you have to go if you want to go to ieee</p>



<p class="wp-block-paragraph">if you only want to be in pure binary then this is what it would look like</p>



<p class="wp-block-paragraph">okay that&#8217;s it uh i think that&#8217;s all the example i have for you today in this video thank you so</p>



<p class="wp-block-paragraph">much for watching i hope you learned a little bit and had a little bit of fun see you in the next</p>



<p class="wp-block-paragraph">video</p>



<p class="wp-block-paragraph">Hey everybody!</p>



<p class="wp-block-paragraph">Thanks for watching this video again from the bottom of my heart.</p>



<p class="wp-block-paragraph">I really appreciate it.</p>



<p class="wp-block-paragraph">I do hope you did learn something and have some fun.</p>



<p class="wp-block-paragraph">If you could do me a please, a small little favor, could you please subscribe and follow</p>



<p class="wp-block-paragraph">this channel or these videos or whatever it is you do on the current social media website</p>



<p class="wp-block-paragraph">that you&#8217;re looking at right now.</p>



<p class="wp-block-paragraph">It would really mean the world to me and it&#8217;ll help make more videos and grow this community.</p>



<p class="wp-block-paragraph">better videos or just I&#8217;ll be able to keep making videos in general so please</p>



<p class="wp-block-paragraph">do do me a kindness and and subscribe you know sometimes I&#8217;m sleeping in the</p>



<p class="wp-block-paragraph">middle of the night and I just wake up because I know somebody subscribed or</p>



<p class="wp-block-paragraph">followed it just wakes me up and I get filled with joy that&#8217;s exactly what</p>



<p class="wp-block-paragraph">happens every single time so you could do it as a nice favor to me or you could</p>



<p class="wp-block-paragraph">you control me if you want to just wake me up in the middle of the night just</p>



<p class="wp-block-paragraph">subscribe and then I&#8217;ll just wake up I promise that&#8217;s what will happen also if</p>



<p class="wp-block-paragraph">If you look at the middle of the screen right now, you should see a QR code, which you can scan in order to go to the website, which I think is also named somewhere at the bottom of this video.</p>



<p class="wp-block-paragraph">And it&#8217;ll take you to my main website where you can just kind of like see all the videos I published and the services and tutorials and things that I offer and all that good stuff.</p>



<p class="wp-block-paragraph">And if you have a suggestion for clarifications or errata or just future videos that you want to see, please leave a comment.</p>



<p class="wp-block-paragraph">or if you just want to say hey what&#8217;s up what&#8217;s going on you know just send me a comment whatever</p>



<p class="wp-block-paragraph">i also wake up for those in the middle of the night i get i wake up in a cold sweat and i&#8217;m like</p>



<p class="wp-block-paragraph">it would really it really mean the world to me i would really appreciate it so again thank you</p>



<p class="wp-block-paragraph">so much for watching this video and um enjoy the cool music as as i fade into the darkness</p>



<p class="wp-block-paragraph">Thank you.</p>
<p>The post <a href="https://www.NeuralLantern.com/how-to-master-binary-scientific-notation-with-fun-examples/">How to Master Binary Scientific Notation (with Fun Examples!)</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/how-to-master-binary-scientific-notation-with-fun-examples/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Convert Decimal Fractions to Binary (and Back!) &#8211; Easy Step-by-Step Guide</title>
		<link>https://www.NeuralLantern.com/how-to-convert-decimal-fractions-to-binary-and-back-easy-step-by-step-guide/</link>
					<comments>https://www.NeuralLantern.com/how-to-convert-decimal-fractions-to-binary-and-back-easy-step-by-step-guide/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Fri, 02 May 2025 09:26:40 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Conversions]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[binary conversion]]></category>
		<category><![CDATA[binary fractions]]></category>
		<category><![CDATA[binary numbers]]></category>
		<category><![CDATA[binary to decimal]]></category>
		<category><![CDATA[coding basics]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[computer science for beginners]]></category>
		<category><![CDATA[decimal fractions]]></category>
		<category><![CDATA[decimal to binary]]></category>
		<category><![CDATA[floating point numbers]]></category>
		<category><![CDATA[IEEE 754]]></category>
		<category><![CDATA[learn binary]]></category>
		<category><![CDATA[precision loss]]></category>
		<category><![CDATA[tech tutorials]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=97</guid>

					<description><![CDATA[<p>Master decimal-to-binary fraction conversion! Learn step-by-step with examples like 0.84375. Perfect for students &#038; coders. #Binary #ComputerScience</p>
<p>The post <a href="https://www.NeuralLantern.com/how-to-convert-decimal-fractions-to-binary-and-back-easy-step-by-step-guide/">How to Convert Decimal Fractions to Binary (and Back!) &#8211; Easy Step-by-Step Guide</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="How to Convert Decimal Fractions to Binary (and Back!) - Easy Step-by-Step Guide" width="1380" height="776" src="https://www.youtube.com/embed/qTukm9OUykk?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p class="wp-block-paragraph">Struggling with converting decimal fractions to binary? In this fun, beginner-friendly tutorial, we dive into how to convert numbers like 45.8046875 to binary and back to decimal, step by step! Learn the multiplying-by-2 method, handle precision loss, and understand fractional binary representation. With real examples (0.126753, 0.84375), you’ll master this key computer science skill. Perfect for students, coders, or anyone curious about how computers store numbers. Subscribe for more tech tutorials, and let me know what you want to learn next! Visit [YourWebsiteLink] for more. #Binary #DecimalToBinary #ComputerScience #TechTutorials</p>



<p class="wp-block-paragraph">Introduction to Decimal-Binary Conversion 00:00:00<br>Understanding Fractional Binary Numbers 00:00:15<br>Fractional Binary Representation Basics 00:01:00<br>Converting Decimal Fractions to Binary 00:04:06<br>Example: Converting 0.126753 to Binary 00:04:52<br>Precision Loss in Conversions 00:05:36<br>Example: Converting 0.84375 to Binary 00:09:57<br>Converting Binary Fractions to Decimal 00:14:22<br>Example: Converting Complex Number 45.8046875 00:16:48<br>Combining Whole and Fractional Parts 00:21:00<br>Conclusion and Verification 00:23:25<br>Outro and Community Engagement 00:24:16</p>



<p class="wp-block-paragraph">Thanks for watching!</p>



<p class="wp-block-paragraph">Find us on other social media here:</p>



<ul class="wp-block-list">
<li>https://www.NeuralLantern.com/social</li>
</ul>



<p class="wp-block-paragraph">Please help support us!</p>



<ul class="wp-block-list">
<li>Subscribing + Sharing on Social Media</li>



<li>Leaving a comment or suggestion</li>



<li>Subscribing to our Blog</li>



<li>Watching the main &#8220;pinned&#8221; video of this channel for offers and extras</li>
</ul>



<p class="wp-block-paragraph">Hello there, let&#8217;s talk about how to convert decimal numbers with fractions into binary</p>



<p class="wp-block-paragraph">numbers with fractions and vice versa.</p>



<p class="wp-block-paragraph">So up to this point, if you&#8217;ve been watching my other videos, you probably know that you</p>



<p class="wp-block-paragraph">can easily convert a decimal number to binary and binary to decimal if the decimal and binary</p>



<p class="wp-block-paragraph">numbers but in order to progress towards IEEE 754 representation in other words</p>



<p class="wp-block-paragraph">in order to eventually be able to represent binary numbers with fractions</p>



<p class="wp-block-paragraph">like floats or doubles in the machine you have to start learning how to get</p>



<p class="wp-block-paragraph">the fraction part of a decimal number into binary the way we&#8217;re going to do</p>



<p class="wp-block-paragraph">it in this video it&#8217;s not actually going to be the final representation of how</p>



<p class="wp-block-paragraph">your machine stores floating point numbers but it&#8217;s an important step on</p>



<p class="wp-block-paragraph">on the way there. Without this step, you probably wouldn&#8217;t be able to do it.</p>



<p class="wp-block-paragraph">So what am I talking about? I&#8217;m just going to open up this notepad real fast and just show you</p>



<p class="wp-block-paragraph">that what I really mean is, suppose we have like a number 45 point blah, blah, blah, blah, blah,</p>



<p class="wp-block-paragraph">right? So this is the whole part and this is the fractional part. Okay, no problem. Also in binary,</p>



<p class="wp-block-paragraph">we have like a bunch of ones and zeros. This is a whole number, but we could put a decimal point</p>



<p class="wp-block-paragraph">and then just start doing more numbers after the decimal point in order to represent a</p>



<p class="wp-block-paragraph">in order to represent a fractional binary number.</p>



<p class="wp-block-paragraph">Okay, so let&#8217;s see.</p>



<p class="wp-block-paragraph">We know, hopefully at this point, if you watch my other videos,</p>



<p class="wp-block-paragraph">that, I don&#8217;t know, I&#8217;m just going to put some random numbers here</p>



<p class="wp-block-paragraph">and then like some more random numbers there.</p>



<p class="wp-block-paragraph">And you know that the strength of each of these numbers</p>



<p class="wp-block-paragraph">is sort of like increasing by powers of two on the left side, on the whole side.</p>



<p class="wp-block-paragraph">So the strength of that first digit is one.</p>



<p class="wp-block-paragraph">digit is one the next digit has a strength of two and then four and then eight and then 16 maybe i&#8217;ll</p>



<p class="wp-block-paragraph">put the six up here and then 32 so three and two and then 64 and maybe i&#8217;ll do another digit i&#8217;ll</p>



<p class="wp-block-paragraph">just put like a zero there and then you know the left most digit has a strength of 128 so basically</p>



<p class="wp-block-paragraph">a 1 or a 0 for the actual binary number multiplied by its strength. So 1 times 1 is 1, add that to</p>



<p class="wp-block-paragraph">0 times 2, add that to 1 times 4, and 0 times 8, and 1 times 16, and so forth, right? So hopefully</p>



<p class="wp-block-paragraph">we know how to do that at this point. To do the same thing on the fractional side, maybe I won&#8217;t</p>



<p class="wp-block-paragraph">put a decimal marker there, it&#8217;s really the same deal except as we go left, we were multiplying by</p>



<p class="wp-block-paragraph">have more power more strength but as we go to the right past the decimal point they should have less</p>



<p class="wp-block-paragraph">strength and we&#8217;ll just divide them by two so pretty much at this point let&#8217;s see we&#8217;ll have</p>



<p class="wp-block-paragraph">one half will be the strength of this digit right here whoops one half so the strength that that</p>



<p class="wp-block-paragraph">digit has is just one half the strength that the next digit has is going to be one fourth remember</p>



<p class="wp-block-paragraph">1 4th remember you multiply sorry you divide by 2 each time whoops I&#8217;m getting lost oh man I</p>



<p class="wp-block-paragraph">probably need to add some spaces because it&#8217;s starting to get pretty ugly so this digit has</p>



<p class="wp-block-paragraph">a strength of 1 half this digit has a strength of 1 4th and then we&#8217;ll just say that the next one</p>



<p class="wp-block-paragraph">has a strength of 1 8th and so forth we&#8217;ll just keep dividing by 2 each time so don&#8217;t forget that</p>



<p class="wp-block-paragraph">don&#8217;t make the mistake of saying 1 4th or sorry don&#8217;t make the mistake of saying 1 half 1 3rd</p>



<p class="wp-block-paragraph">one half, one third, one fourth.</p>



<p class="wp-block-paragraph">Don&#8217;t increase the denominator by one.</p>



<p class="wp-block-paragraph">You want to multiply, or sorry,</p>



<p class="wp-block-paragraph">you want to divide by two each time.</p>



<p class="wp-block-paragraph">Or if you want to say the word multiplication,</p>



<p class="wp-block-paragraph">then you multiply by 0.5, I guess, if you want to.</p>



<p class="wp-block-paragraph">I&#8217;m just going to write 1 16th</p>



<p class="wp-block-paragraph">and then just be done with the divisions.</p>



<p class="wp-block-paragraph">I hope you understand what I&#8217;m talking about.</p>



<p class="wp-block-paragraph">We&#8217;re going to do some examples right now.</p>



<p class="wp-block-paragraph">Okay, so let&#8217;s calculate.</p>



<p class="wp-block-paragraph">Well, actually, let&#8217;s just, just to emphasize, just to make sure everybody understands, what</p>



<p class="wp-block-paragraph">we would do to convert such a number from binary to decimal would basically be, you</p>



<p class="wp-block-paragraph">know, compute the left side as if it were a whole number.</p>



<p class="wp-block-paragraph">I&#8217;m going to put W for whole number.</p>



<p class="wp-block-paragraph">And then separately convert the fractional part as if it were just, you know, zero point</p>



<p class="wp-block-paragraph">something.</p>



<p class="wp-block-paragraph">And then just combine the two things when you&#8217;re in decimal.</p>



<p class="wp-block-paragraph">And you&#8217;ll do the same thing when converting a number from decimal to binary.</p>



<p class="wp-block-paragraph">decimal to binary you convert the whole part first put that into ones and zeros then convert the fact</p>



<p class="wp-block-paragraph">the fractional part into a fractional binary part and then just combine them across the decimal point</p>



<p class="wp-block-paragraph">so let&#8217;s do an example let&#8217;s start with converting 0.126753 i don&#8217;t think that this number is going</p>



<p class="wp-block-paragraph">to resolve easily it&#8217;s kind of like a good lesson here when you&#8217;re converting between binary and</p>



<p class="wp-block-paragraph">there are always going to be some numbers in in in decimal that you can&#8217;t represent in binary</p>



<p class="wp-block-paragraph">and vice versa there are always going to be some numbers in binary that you can&#8217;t represent in</p>



<p class="wp-block-paragraph">decimal so it&#8217;s not that decimal or binary or you know superior or inferior i mean all technology</p>



<p class="wp-block-paragraph">is pretty much running on binary so it can&#8217;t be that bad but um just keep that in mind some numbers</p>



<p class="wp-block-paragraph">that you type randomly are just never going to resolve and you&#8217;ll have to give up at some point</p>



<p class="wp-block-paragraph">have to give up at some point and say, well, we&#8217;re just going to call this a precision loss</p>



<p class="wp-block-paragraph">because we just, we just have to like give up, especially if you only have so many bits</p>



<p class="wp-block-paragraph">to put the fraction in. Okay. So what am I going to do? What&#8217;s the, what&#8217;s the basic algorithm</p>



<p class="wp-block-paragraph">here? There are lots of different ways to do it. The way that I&#8217;m going to show you is just</p>



<p class="wp-block-paragraph">multiplying by two. So if we take, you know, 0.126753 and we multiply it by two,</p>



<p class="wp-block-paragraph">We end up with, let&#8217;s see, times 2.</p>



<p class="wp-block-paragraph">Whoops, hello.</p>



<p class="wp-block-paragraph">Oh, I got to do that.</p>



<p class="wp-block-paragraph">Times 2.</p>



<p class="wp-block-paragraph">We&#8217;re going to end up with a different number.</p>



<p class="wp-block-paragraph">If the number is equal to or greater than 1,</p>



<p class="wp-block-paragraph">then we will say that we have achieved a number of 1 for the converted binary number.</p>



<p class="wp-block-paragraph">And if not, we&#8217;ll say we have achieved a number of 0.</p>



<p class="wp-block-paragraph">If the number is 1, we&#8217;ll also subtract 1 from the remaining number here in decimal.</p>



<p class="wp-block-paragraph">The result we have is just, what&#8217;s going on?</p>



<p class="wp-block-paragraph">Oh, I somehow turned on my annotator.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">In this case, we just have, you know, this number right here.</p>



<p class="wp-block-paragraph">It&#8217;s not greater than one or equal to one.</p>



<p class="wp-block-paragraph">So I&#8217;m just going to say this gave us a binary number of zero.</p>



<p class="wp-block-paragraph">And because it gave us a zero, we&#8217;re not actually going to change it at all.</p>



<p class="wp-block-paragraph">We&#8217;re not going to subtract one from it.</p>



<p class="wp-block-paragraph">We&#8217;re just going to leave it as is.</p>



<p class="wp-block-paragraph">We will then multiply by two again.</p>



<p class="wp-block-paragraph">by 2 again. So I&#8217;m just going to say, do it one more time. We&#8217;ll say this multiplied by 2,</p>



<p class="wp-block-paragraph">and it&#8217;s going to be this number. Again, it did not exceed or equal 1, so the bit in that position</p>



<p class="wp-block-paragraph">is going to be a 0, and we&#8217;ll just copy and carry it over just as is. Do it again, and we&#8217;ll say</p>



<p class="wp-block-paragraph">Now we have a number that equals or exceeds one.</p>



<p class="wp-block-paragraph">So we&#8217;ve achieved a one in the binary position.</p>



<p class="wp-block-paragraph">So it&#8217;s going to be a one here.</p>



<p class="wp-block-paragraph">Then we got to subtract one.</p>



<p class="wp-block-paragraph">So we&#8217;re just going to be left with 0.014, 024 and whatever.</p>



<p class="wp-block-paragraph">And then we just continue.</p>



<p class="wp-block-paragraph">Maybe I&#8217;ll do it a couple more times,</p>



<p class="wp-block-paragraph">but I&#8217;m going to give up because I don&#8217;t think</p>



<p class="wp-block-paragraph">that this number will translate completely.</p>



<p class="wp-block-paragraph">So I&#8217;m going to say multiply by two again,</p>



<p class="wp-block-paragraph">and it&#8217;s going to give us,</p>



<p class="wp-block-paragraph">hang on a second here.</p>



<p class="wp-block-paragraph">What was that?</p>



<p class="wp-block-paragraph">Hang on a second here. What was that? That was one. Oh, I forgot to subtract one. So I got to</p>



<p class="wp-block-paragraph">subtract one. And then I&#8217;m going to multiply by two. Now we get this number right there.</p>



<p class="wp-block-paragraph">This is not equal to or greater than one. So the bit is going to be zero.</p>



<p class="wp-block-paragraph">And then that means the remaining number is just going to be the same thing.</p>



<p class="wp-block-paragraph">We&#8217;ll do another. Actually, let me let me clean the calculator for a second here.</p>



<p class="wp-block-paragraph">going to select this whole thing and just paste that and I&#8217;m going to say</p>



<p class="wp-block-paragraph">multiplied by two that&#8217;s going to be that new number and I think you&#8217;re</p>



<p class="wp-block-paragraph">starting to understand why I want to give up because we&#8217;ll just be kind of</p>



<p class="wp-block-paragraph">doing this forever this might end up being an irrational number in binary I</p>



<p class="wp-block-paragraph">don&#8217;t really know I haven&#8217;t gone that far but it&#8217;s definitely gonna take a long</p>



<p class="wp-block-paragraph">time so I&#8217;m gonna give up and I&#8217;m just gonna say all right the final binary</p>



<p class="wp-block-paragraph">number is gonna be 0.00100 and then just say maybe there&#8217;s some more stuff at</p>



<p class="wp-block-paragraph">maybe there&#8217;s some more stuff at the end we&#8217;ll just call this a precision loss</p>



<p class="wp-block-paragraph">you can see well maybe I should do one more number actually because it it&#8217;s kind of a mirror there&#8217;s</p>



<p class="wp-block-paragraph">like two zeros and then a one and then two zeros on the other side let me multiply this by two</p>



<p class="wp-block-paragraph">real fast just to show you without symmetry what would happen so I&#8217;m gonna multiply that by two</p>



<p class="wp-block-paragraph">and it&#8217;s gonna be this number right here so that&#8217;s gonna be zero because it didn&#8217;t exceed</p>



<p class="wp-block-paragraph">or meet one and so the number we have left over is just that okay so now</p>



<p class="wp-block-paragraph">because there&#8217;s no symmetry you can see that the number is going to be point</p>



<p class="wp-block-paragraph">zero zero one zero zero zero we go from top to bottom we don&#8217;t do any kind of</p>



<p class="wp-block-paragraph">reversal like you might do with whole number binary conversion I don&#8217;t know</p>



<p class="wp-block-paragraph">maybe it&#8217;ll be zero for a long long long long time and never or yeah they&#8217;ll</p>



<p class="wp-block-paragraph">probably be some ones in there at least I don&#8217;t know if it&#8217;s ever going to</p>



<p class="wp-block-paragraph">resolve you&#8217;ll know you&#8217;re finished when the</p>



<p class="wp-block-paragraph">Here is a zero.</p>



<p class="wp-block-paragraph">So again, I&#8217;m just going to give up on this because I don&#8217;t really know if it&#8217;s going to work.</p>



<p class="wp-block-paragraph">Let&#8217;s do a number that I know is going to resolve.</p>



<p class="wp-block-paragraph">I have this one prepared in advance.</p>



<p class="wp-block-paragraph">So let&#8217;s do 0.84375.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">So how do we convert this?</p>



<p class="wp-block-paragraph">Again, just multiply by two.</p>



<p class="wp-block-paragraph">Every single time you meet or exceed one, then you&#8217;ll say that we have a one in the binary number.</p>



<p class="wp-block-paragraph">binary number and then subtract one after that and if not we will say that</p>



<p class="wp-block-paragraph">we have a zero in the binary position and then we won&#8217;t subtract one okay so</p>



<p class="wp-block-paragraph">that number multiplied by two is going to be point one six eight seven five so</p>



<p class="wp-block-paragraph">that&#8217;s definitely greater than or equal to one so I&#8217;m going to say we have a one</p>



<p class="wp-block-paragraph">in the binary position and then the next number is going to be just be zero point</p>



<p class="wp-block-paragraph">now we take that number 6875 you could also just you know in your calculator you could say minus</p>



<p class="wp-block-paragraph">one and then we&#8217;ll multiply it by two to get the next bit the number is going to be 1.375 so i&#8217;m</p>



<p class="wp-block-paragraph">going to write 1.375 here and then it&#8217;s greater than or equal to one so it&#8217;s going to be another</p>



<p class="wp-block-paragraph">one here and then after we subtract one it&#8217;s going to be 375 no problem okay so let me just</p>



<p class="wp-block-paragraph">And then multiply by 2 to get to the next bit position.</p>



<p class="wp-block-paragraph">It&#8217;s going to be 0.75.</p>



<p class="wp-block-paragraph">All right, so 0.75, that number is less than 1, so we have a 0 in that bit position.</p>



<p class="wp-block-paragraph">We also don&#8217;t subtract anything because we had a 0 in that bit position.</p>



<p class="wp-block-paragraph">Then we just multiply by 2 again.</p>



<p class="wp-block-paragraph">Multiply by 2, now we have 1.5 because that&#8217;s greater than or equal to 1.</p>



<p class="wp-block-paragraph">We have a 1 in that bit&#8217;s position, then we subtract 1.</p>



<p class="wp-block-paragraph">one it&#8217;s just going to be 0.5 that should be pretty easy right because that&#8217;s that sounds</p>



<p class="wp-block-paragraph">like there&#8217;s a one in a bit and then it&#8217;s just done after that so i&#8217;m going to do minus one</p>



<p class="wp-block-paragraph">and then multiply by two again notice how that is exactly a one so it&#8217;s going to be 1.0</p>



<p class="wp-block-paragraph">which means we have a one in the position because it is equal to or greater than one</p>



<p class="wp-block-paragraph">and then uh well what we have left over is zero</p>



<p class="wp-block-paragraph">Zero multiplied by two is going to be zero.</p>



<p class="wp-block-paragraph">So that means if we kept doing this forever,</p>



<p class="wp-block-paragraph">then all the numbers down here are just going to be zeros forever.</p>



<p class="wp-block-paragraph">And I said in another video,</p>



<p class="wp-block-paragraph">when you realize what&#8217;s going on with the zeros,</p>



<p class="wp-block-paragraph">like where are they?</p>



<p class="wp-block-paragraph">Are they on the left or the right?</p>



<p class="wp-block-paragraph">When you&#8217;re converting a whole number from binary to decimal or decimal to binary,</p>



<p class="wp-block-paragraph">the zeros would be on the left side.</p>



<p class="wp-block-paragraph">So that&#8217;s why we would reverse</p>



<p class="wp-block-paragraph">because if you just add infinity zeros on the left of a whole number,</p>



<p class="wp-block-paragraph">you&#8217;re not changing the value.</p>



<p class="wp-block-paragraph">number you&#8217;re not changing the value but if you added them to the right you&#8217;d be increasing the</p>



<p class="wp-block-paragraph">value when it comes to the fractions the right side of the fraction won&#8217;t change the number for</p>



<p class="wp-block-paragraph">example if we had you know one point and then some like random binary numbers if we just kept adding</p>



<p class="wp-block-paragraph">zeros on the right side that&#8217;s not changing the value of the number because this is the fractional</p>



<p class="wp-block-paragraph">part however if we started adding numbers on the left side then we would make the fractional part</p>



<p class="wp-block-paragraph">smaller and smaller and smaller so that means the zeros have to be on the right side and you can see</p>



<p class="wp-block-paragraph">and you can see here the right side is the bottom so that means we&#8217;re going to take these numbers</p>



<p class="wp-block-paragraph">I&#8217;ll just put etc here just so you can see etc that means we&#8217;re going from top to bottom so the</p>



<p class="wp-block-paragraph">final number is 0.11011 and then a bunch of zeros after that are just you know nothing</p>



<p class="wp-block-paragraph">and that&#8217;s the final answer we now have 0.84375 is equal to binary that number and we&#8217;ll just say</p>



<p class="wp-block-paragraph">that number and we&#8217;ll just say OB to to indicate that the following is a binary</p>



<p class="wp-block-paragraph">number because again you could have a decimal number and then have like a</p>



<p class="wp-block-paragraph">bunch of like ones and zeros in the fraction part I guess so to make sure</p>



<p class="wp-block-paragraph">that the reader understands what they&#8217;re seeing you&#8217;ll say OB to indicate this is</p>



<p class="wp-block-paragraph">a binary number on exams or quizzes if you&#8217;re out there doing this for an exam</p>



<p class="wp-block-paragraph">or a quiz keep in mind you probably want to talk to professor to make sure that</p>



<p class="wp-block-paragraph">ob is supposed to be part of your answer they might just want this it depends anyway so 0.11011</p>



<p class="wp-block-paragraph">okay then let&#8217;s convert it back again let&#8217;s let&#8217;s convert this number to the original decimal number</p>



<p class="wp-block-paragraph">there okay so how can we do that pretty much just start adding the fractions up so remember the</p>



<p class="wp-block-paragraph">Remember, the first fraction that we see is going to be one half.</p>



<p class="wp-block-paragraph">One half.</p>



<p class="wp-block-paragraph">And the second fraction we see is going to be one fourth.</p>



<p class="wp-block-paragraph">And then we just keep multiplying.</p>



<p class="wp-block-paragraph">One fourth, one half.</p>



<p class="wp-block-paragraph">Maybe I should write this in a notepad here.</p>



<p class="wp-block-paragraph">We&#8217;ll see one half plus one fourth plus one eighth.</p>



<p class="wp-block-paragraph">And some of these bits aren&#8217;t going to count.</p>



<p class="wp-block-paragraph">Like, for instance, the one eighth, it&#8217;s not going to count towards the fraction.</p>



<p class="wp-block-paragraph">But for me personally, if I forget to type one eighth,</p>



<p class="wp-block-paragraph">I&#8217;m probably going to accidentally use it for the next position.</p>



<p class="wp-block-paragraph">So I&#8217;m just going to type everything one at a time.</p>



<p class="wp-block-paragraph">So let&#8217;s see, we have one, two, three, four, five, one, two, three, four.</p>



<p class="wp-block-paragraph">So I got to do one more plus one 32nd and then multiply by the bits.</p>



<p class="wp-block-paragraph">So say like, you know, one times that and then one times that and then zero times that</p>



<p class="wp-block-paragraph">to basically, you know, cancel it out.</p>



<p class="wp-block-paragraph">And then one times that and then one times that.</p>



<p class="wp-block-paragraph">plug it all into the calculator</p>



<p class="wp-block-paragraph">let&#8217;s see if I got that right</p>



<p class="wp-block-paragraph">0.84375</p>



<p class="wp-block-paragraph">so that&#8217;s how you convert</p>



<p class="wp-block-paragraph">back from binary to decimal</p>



<p class="wp-block-paragraph">pretty easy and then also</p>



<p class="wp-block-paragraph">of course when you&#8217;re practicing this you want to try</p>



<p class="wp-block-paragraph">with a bunch of different random numbers to start off with</p>



<p class="wp-block-paragraph">you just want to be</p>



<p class="wp-block-paragraph">careful again this process</p>



<p class="wp-block-paragraph">could take forever if you have like</p>



<p class="wp-block-paragraph">you know the wrong number that you</p>



<p class="wp-block-paragraph">start with but I guess at least</p>



<p class="wp-block-paragraph">at least when we&#8217;re converting from binary to decimal it&#8217;s going to end up resolving to something</p>



<p class="wp-block-paragraph">uh it won&#8217;t necessarily be something that you can&#8217;t represent but you know if you start</p>



<p class="wp-block-paragraph">up with a random number in decimal there&#8217;s a chance maybe it&#8217;s not going to work with binary</p>



<p class="wp-block-paragraph">okay well you have to give up and call it a precision loss okay so then now let&#8217;s uh let&#8217;s</p>



<p class="wp-block-paragraph">ask what if we had a complex number because we know how to do this now with just the fractional</p>



<p class="wp-block-paragraph">now with just the fractional part but what if we had a number that was um a little bit more</p>



<p class="wp-block-paragraph">difficult let&#8217;s say we have wait a minute you know for you know for 37 5.</p>



<p class="wp-block-paragraph">oh i think i just accidentally did a totally different number than i wanted to on my plan</p>



<p class="wp-block-paragraph">luckily i got the right answer okay</p>



<p class="wp-block-paragraph">Anyway, what if we had a more complicated number?</p>



<p class="wp-block-paragraph">Let&#8217;s see, 804, 6875.</p>



<p class="wp-block-paragraph">Okay, so 804, 6875, but with a 45 in front of that.</p>



<p class="wp-block-paragraph">Remember we said before that this is the whole part</p>



<p class="wp-block-paragraph">and this is the fractional part,</p>



<p class="wp-block-paragraph">and you just wanna do them separately</p>



<p class="wp-block-paragraph">and then combine them afterwards.</p>



<p class="wp-block-paragraph">So the whole part, let&#8217;s see, what is that gonna be?</p>



<p class="wp-block-paragraph">I&#8217;m just gonna say that this is not a video</p>



<p class="wp-block-paragraph">for whole number binary conversion.</p>



<p class="wp-block-paragraph">This is just dealing with fractions.</p>



<p class="wp-block-paragraph">just dealing with fractions. Find my other videos if you want to know how to convert the whole part,</p>



<p class="wp-block-paragraph">but I&#8217;m going to say that 45 is just this number in binary. And you can double check real fast.</p>



<p class="wp-block-paragraph">You can say 1 plus, here let&#8217;s do it again, let&#8217;s do it just to be sure. 1 plus not a 2 because</p>



<p class="wp-block-paragraph">there&#8217;s a 0 there, and then we&#8217;ll say 4 plus 8 plus not a 16 because there&#8217;s a 0 there, and then</p>



<p class="wp-block-paragraph">plus 32. Add that together, that&#8217;s 45. So the whole number part is pretty easy if you already know how</p>



<p class="wp-block-paragraph">number part is pretty easy if you already know how binary conversion but now let&#8217;s convert point uh</p>



<p class="wp-block-paragraph">zero eight zero point eight zero four whoops screenshot no thank you zero point eight oh four</p>



<p class="wp-block-paragraph">six eight seven five so i&#8217;m gonna have to do this from scratch since this is a different number than</p>



<p class="wp-block-paragraph">i just worked with we&#8217;ll do that multiplied by two and it&#8217;s going to be this number</p>



<p class="wp-block-paragraph">is that really not the same number?</p>



<p class="wp-block-paragraph">Yeah, I guess I really just did a different number.</p>



<p class="wp-block-paragraph">Okay, so that means we&#8217;re going to have a 1 in the binary position</p>



<p class="wp-block-paragraph">and the remaining fractional part is just going to be this.</p>



<p class="wp-block-paragraph">Whoops, zero point that.</p>



<p class="wp-block-paragraph">So then we take that number and bring it down.</p>



<p class="wp-block-paragraph">Multiply it by 2.</p>



<p class="wp-block-paragraph">Whoops, not supposed to actually bring that part down.</p>



<p class="wp-block-paragraph">We&#8217;ll bring it into the calculator.</p>



<p class="wp-block-paragraph">We&#8217;ll multiply it by 2.</p>



<p class="wp-block-paragraph">actually let me get that again and subtract one just to double check myself it&#8217;s always good to</p>



<p class="wp-block-paragraph">double check yourself then we&#8217;ll multiply this by two and then the number is going to be point</p>



<p class="wp-block-paragraph">1.28 so we have that and then since it&#8217;s either equal to or greater than one it&#8217;s going to be</p>



<p class="wp-block-paragraph">you know a one in the binary position so 0.21875 is going to be the remainder there</p>



<p class="wp-block-paragraph">so I&#8217;m going to do minus 1 and then times 2 to make sure the calculator agrees with me whoops</p>



<p class="wp-block-paragraph">21875 okay then I&#8217;ll do a multiply by 2 to get the next number 4 3 7 5</p>



<p class="wp-block-paragraph">and that&#8217;s not equal to or greater than 1 so we&#8217;ll put a 0 there and we won&#8217;t subtract anything</p>



<p class="wp-block-paragraph">so it&#8217;s just going to be 0.4375 again then we&#8217;ll multiply that by 2 to get the next number</p>



<p class="wp-block-paragraph">times two it&#8217;s going to be 0.875 so 0.875 again this is not one or greater so we have zero in</p>



<p class="wp-block-paragraph">the binary position and we don&#8217;t subtract anything 0.875 multiply by two again times two so it&#8217;s</p>



<p class="wp-block-paragraph">going to be 1.75 1.75 and then of course we&#8217;ll have a one in the binary position and the leftover</p>



<p class="wp-block-paragraph">0.75 so let me just go back to the calculator and I&#8217;ll say minus 1 times 2 it&#8217;ll give us 1.5</p>



<p class="wp-block-paragraph">so 1.5 over here means we&#8217;ll have a 1 in the binary position because it was equal to or greater</p>



<p class="wp-block-paragraph">than 1 the leftover is going to be 0.5 now you know we&#8217;re about to finish because 0.5 times 2</p>



<p class="wp-block-paragraph">is just going to be 1.0 which will give us a 1 for the binary part and then the remainder is going</p>



<p class="wp-block-paragraph">remainder is going to be 0.0 and then you know there&#8217;s no need to multiply 0 by 2 because it is</p>



<p class="wp-block-paragraph">forever going to just be zeros uh maybe i&#8217;ll just write it out one more time just so you know 000</p>



<p class="wp-block-paragraph">right remember that so that means of course the zeros are on the right side of the fractional</p>



<p class="wp-block-paragraph">part and on the left side is going to be 0.110011</p>



<p class="wp-block-paragraph">1100111 and then now we just have to combine those two numbers so maybe just I&#8217;ll put something</p>



<p class="wp-block-paragraph">here indicating that this is the conversion of just that number like that now we&#8217;ll combine</p>



<p class="wp-block-paragraph">both of those parts right so 45 was this so I&#8217;ll say maybe therefore this big number right here</p>



<p class="wp-block-paragraph">combine this number for 45 and then I&#8217;ll just put a decimal point and then I&#8217;ll put the fractional</p>



<p class="wp-block-paragraph">part on the right side and then let me just double check my work real fast it should be</p>



<p class="wp-block-paragraph">10110111 wait wait what no no 101101 and then 1100111 okay so that&#8217;s it we&#8217;ve converted</p>



<p class="wp-block-paragraph">converted a complicated decimal number into binary.</p>



<p class="wp-block-paragraph">And we can do it in the reverse, just using the same thing.</p>



<p class="wp-block-paragraph">You know, step one, convert this number into a whole number of decimal.</p>



<p class="wp-block-paragraph">And then step two, convert this number into a whole number,</p>



<p class="wp-block-paragraph">sorry, a just only fractional number for decimal</p>



<p class="wp-block-paragraph">by just getting the one half plus one fourth and so forth.</p>



<p class="wp-block-paragraph">put them around a decimal point just for practice okay I&#8217;ll go ahead and do it</p>



<p class="wp-block-paragraph">some of you are probably like why won&#8217;t you do it I&#8217;ll do it okay so just only</p>



<p class="wp-block-paragraph">looking at the fractional part because that this is not a video to convert</p>



<p class="wp-block-paragraph">whole numbers in binary and decimal but just to convert the fractional part only</p>



<p class="wp-block-paragraph">I&#8217;m gonna do let&#8217;s see say whoops whoops whoops whoops whoops whoops maybe I need</p>



<p class="wp-block-paragraph">Okay, so starting with just this one right here,</p>



<p class="wp-block-paragraph">it&#8217;s going to be 1 half plus 1 fourth plus not 1 eighth, not 1 16th, a 32.</p>



<p class="wp-block-paragraph">1 32 plus 1 over 64 plus 1 over 128.</p>



<p class="wp-block-paragraph">0.8046875.</p>



<p class="wp-block-paragraph">So it looks like we succeeded.</p>



<p class="wp-block-paragraph">Okay, so now we know how to convert</p>



<p class="wp-block-paragraph">a decimal number with a fraction</p>



<p class="wp-block-paragraph">into a binary number with a fraction.</p>



<p class="wp-block-paragraph">And we also know how to convert</p>



<p class="wp-block-paragraph">a binary number with a fraction</p>



<p class="wp-block-paragraph">to a decimal number with a fraction.</p>



<p class="wp-block-paragraph">That feels like a long video.</p>



<p class="wp-block-paragraph">Let&#8217;s see what it is after I cut this.</p>



<p class="wp-block-paragraph">Thank you so much for watching.</p>



<p class="wp-block-paragraph">I hope you learned a little bit of stuff</p>



<p class="wp-block-paragraph">and you had a little bit of fun.</p>



<p class="wp-block-paragraph">I will see you in the next video.</p>



<p class="wp-block-paragraph">grow this community so we&#8217;ll be able to do more videos, longer videos, better videos,</p>



<p class="wp-block-paragraph">or just I&#8217;ll be able to keep making videos in general. So please do me a kindness and subscribe.</p>



<p class="wp-block-paragraph">You know, sometimes I&#8217;m sleeping in the middle of the night and I just wake up because I know</p>



<p class="wp-block-paragraph">somebody subscribed or followed. It just wakes me up and I get filled with joy. That&#8217;s exactly what</p>



<p class="wp-block-paragraph">happens every single time. So you could do it as a nice favor to me or you could troll me if you</p>



<p class="wp-block-paragraph">want to just wake me up in the middle of the night, just subscribe and then I&#8217;ll just wake up.</p>



<p class="wp-block-paragraph">I promise that&#8217;s what will happen.</p>



<p class="wp-block-paragraph">Also, if you look at the middle of the screen right now, you should see a QR code which you can scan in order to go to the website,</p>



<p class="wp-block-paragraph">which I think is also named somewhere at the bottom of this video.</p>



<p class="wp-block-paragraph">And it&#8217;ll take you to my main website where you can just kind of like see all the videos I published and</p>



<p class="wp-block-paragraph">the services and tutorials and things that I offer and all that good stuff.</p>



<p class="wp-block-paragraph">And if you have a suggestion for</p>



<p class="wp-block-paragraph">or just future videos that you want to see, please leave a comment. Or if you just want to say,</p>



<p class="wp-block-paragraph">hey, what&#8217;s up? What&#8217;s going on? You know, just send me a comment, whatever. I also wake up for</p>



<p class="wp-block-paragraph">those in the middle of the night. I get, I wake up in a cold sweat and I&#8217;m like,</p>



<p class="wp-block-paragraph">it would really, it really mean the world to me. I would really appreciate it. So again,</p>



<p class="wp-block-paragraph">thank you so much for watching this video and enjoy the cool music as, as I fade into the</p>



<p class="wp-block-paragraph">darkness, which is coming for us all.</p>



<p class="wp-block-paragraph">Thank you.</p>
<p>The post <a href="https://www.NeuralLantern.com/how-to-convert-decimal-fractions-to-binary-and-back-easy-step-by-step-guide/">How to Convert Decimal Fractions to Binary (and Back!) &#8211; Easy Step-by-Step Guide</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/how-to-convert-decimal-fractions-to-binary-and-back-easy-step-by-step-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Hex to Decimal Made Easy: Fun &#038; Simple Conversion Guide!</title>
		<link>https://www.NeuralLantern.com/hex-to-decimal-made-easy-fun-simple-conversion-guide/</link>
					<comments>https://www.NeuralLantern.com/hex-to-decimal-made-easy-fun-simple-conversion-guide/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Fri, 02 May 2025 09:23:46 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Conversions]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[beginner coding]]></category>
		<category><![CDATA[binary to decimal]]></category>
		<category><![CDATA[coding for beginners]]></category>
		<category><![CDATA[coding guide]]></category>
		<category><![CDATA[computer science basics]]></category>
		<category><![CDATA[computer science tutorial]]></category>
		<category><![CDATA[hex to decimal]]></category>
		<category><![CDATA[hexadecimal to decimal]]></category>
		<category><![CDATA[hexadecimal tutorial]]></category>
		<category><![CDATA[learn to code]]></category>
		<category><![CDATA[number conversion]]></category>
		<category><![CDATA[number systems]]></category>
		<category><![CDATA[programming tutorial]]></category>
		<category><![CDATA[tech education]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=95</guid>

					<description><![CDATA[<p>Learn to convert hexadecimal to decimal with this fun, easy guide! Perfect for beginners in coding and computer science. #HexToDecimal #LearnToCode</p>
<p>The post <a href="https://www.NeuralLantern.com/hex-to-decimal-made-easy-fun-simple-conversion-guide/">Hex to Decimal Made Easy: Fun &amp; Simple Conversion Guide!</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="Hex to Decimal Made Easy: Fun &amp; Simple Conversion Guide!" width="1380" height="776" src="https://www.youtube.com/embed/yDk-fB52i0A?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p class="wp-block-paragraph">Confused by hexadecimal numbers? Don’t worry! This fun, step-by-step guide makes converting hex to decimal super easy, even for beginners. With clear examples and a chill vibe, you’ll master this computer science skill in no time. Perfect for students, coders, or anyone curious about number systems. Hit subscribe for more coding tutorials, and check out our site for extra resources! #HexToDecimal #CodingForBeginners #ComputerScience #LearnToCode</p>



<p class="wp-block-paragraph">Introduction to Hexadecimal Conversion 00:00:00<br>Purpose of Conversion 00:00:11<br>Number System Basics 00:00:39<br>Hexadecimal Explanation 00:01:12<br>Converting Hex to Decimal 00:01:59<br>First Example Setup 00:02:35<br>Decimal Place Value Recap 00:03:02<br>Hexadecimal Place Value 00:05:14<br>Formula for Conversion 00:05:43<br>Translating Hex Letters 00:08:17<br>First Example Calculation 00:09:51<br>Second Example Introduction 00:11:14<br>Second Example Conversion 00:11:58<br>Second Example Result 00:13:11<br>Conclusion and Call to Action 00:14:00</p>



<p class="wp-block-paragraph">Thanks for watching!</p>



<p class="wp-block-paragraph">Find us on other social media here:</p>



<ul class="wp-block-list">
<li>https://www.NeuralLantern.com/social</li>
</ul>



<p class="wp-block-paragraph">Please help support us!</p>



<ul class="wp-block-list">
<li>Subscribing + Sharing on Social Media</li>



<li>Leaving a comment or suggestion</li>



<li>Subscribing to our Blog</li>



<li>Watching the main &#8220;pinned&#8221; video of this channel for offers and extras</li>
</ul>



<p class="wp-block-paragraph">Hello there. Let&#8217;s talk about converting hexadecimal to decimal.</p>



<p class="wp-block-paragraph">So why would you do this? Of course, sometimes in computer science and other realms, you may be</p>



<p class="wp-block-paragraph">faced with a number that looks like this, and it&#8217;s got some letters in there, and it&#8217;s weird,</p>



<p class="wp-block-paragraph">and you&#8217;re thinking, oops, not a V. That wouldn&#8217;t work. Not a G. And you&#8217;re thinking like, what does</p>



<p class="wp-block-paragraph">what does this number mean in decimal well this is a number that is real and we can just change</p>



<p class="wp-block-paragraph">the way it&#8217;s represented uh to decimal so that we can understand what it is so just like a quick</p>



<p class="wp-block-paragraph">recap if you haven&#8217;t watched my other videos yet uh in decimal we have a base 10 system which just</p>



<p class="wp-block-paragraph">basically means we have these characters zero one two three four five six seven eight nine there</p>



<p class="wp-block-paragraph">base is 10. In binary, of course, we have base two, which is just, you know, we have a zero and a one</p>



<p class="wp-block-paragraph">because in the computer, which is why we learn binary, we just have on and off basically for</p>



<p class="wp-block-paragraph">every single, you know, part of the computer. There&#8217;s just like a certain voltage or there&#8217;s</p>



<p class="wp-block-paragraph">not a certain voltage and that&#8217;s it. And then for hexadecimal, which is a way to represent the same</p>



<p class="wp-block-paragraph">numbers, but just in a more compact way. It&#8217;s a little bit more compact than decimal. It&#8217;s a lot</p>



<p class="wp-block-paragraph">than binary we can say that this is base 16 which means we have 16 total characters that we can work</p>



<p class="wp-block-paragraph">with zero one two three four five six seven eight nine and once we run out of numbers we just start</p>



<p class="wp-block-paragraph">using letters so a b c d e f so there are 16 total characters if we include the zero which means we</p>



<p class="wp-block-paragraph">So that&#8217;s the basics of you know the number basis let&#8217;s uh let&#8217;s work out how to convert a hex</p>



<p class="wp-block-paragraph">number to decimal. So I&#8217;m going to say ox because in hex when you write down a hex number you should</p>



<p class="wp-block-paragraph">usually put ox in front of it unless the program you&#8217;re working with doesn&#8217;t understand that but</p>



<p class="wp-block-paragraph">usually especially for a human reader you should do it this way. So I&#8217;m going to just type like a</p>



<p class="wp-block-paragraph">few random maybe I have to I have to keep the number small because hex will explode it&#8217;ll be</p>



<p class="wp-block-paragraph">not careful. So I&#8217;m going to put like a I don&#8217;t know, maybe a few decimal numbers there or a few</p>



<p class="wp-block-paragraph">like digits that are zero to nine, then I&#8217;ll just to make it more interesting, I&#8217;ll put some letters</p>



<p class="wp-block-paragraph">in there. How about like an E there? And then I don&#8217;t know, like, we&#8217;ll do a B there. Okay, so</p>



<p class="wp-block-paragraph">how many do I have? 12341234? How about we get rid of? Now, let&#8217;s go for it. This is going to be an</p>



<p class="wp-block-paragraph">So this is our starting number hexadecimal. What we need to do is understand that, well,</p>



<p class="wp-block-paragraph">a recap if you haven&#8217;t watched my other videos yet. In decimal we have, let&#8217;s say, 0, 1, 2, 3,</p>



<p class="wp-block-paragraph">4, 5, 6. You know that the first digit has a strength of 1. You multiply 6 by 1 to understand</p>



<p class="wp-block-paragraph">the real power of that 6. For the 5, you know that it has a power of 10 or a strength of 10</p>



<p class="wp-block-paragraph">10 because it&#8217;s the next digit over you know to the left same thing for the four it&#8217;s like got a</p>



<p class="wp-block-paragraph">strength of 100 and so every time you move to the left the strength of the digit increases by a</p>



<p class="wp-block-paragraph">factor of 10. why does it increase by a factor of 10 because decimal is base 10 because we have 10</p>



<p class="wp-block-paragraph">possible digits we can represent for each character okay so by the time we get to that</p>



<p class="wp-block-paragraph">left, we have a strength of 100,000. So, you know, if you wanted to really understand 100,000,</p>



<p class="wp-block-paragraph">if you really wanted to understand, you know, how powerful, let me, let me give some spacing here.</p>



<p class="wp-block-paragraph">So this feels better. Okay. If you really wanted to understand like, you know, what is the strength?</p>



<p class="wp-block-paragraph">What is like the actual value of this digit right here? You&#8217;re imagining this is like 100,000.</p>



<p class="wp-block-paragraph">this digit here you&#8217;re imagining that this is two of ten thousand you know two times ten thousand</p>



<p class="wp-block-paragraph">and so forth so uh uh just like another recap the first digit is really 10 to the zero power</p>



<p class="wp-block-paragraph">like in terms of the strength because if you multiply um let me pin this to the top</p>



<p class="wp-block-paragraph">if you multiply you know 10 to the something power and you start at zero with the most</p>



<p class="wp-block-paragraph">the weakest digit 10 to the zero power gives a strength of one and then every time you move over</p>



<p class="wp-block-paragraph">to the left you just increase the exponent there by one so 10 to the first power is going to be 10</p>



<p class="wp-block-paragraph">that&#8217;s what that five has got so it&#8217;ll be five times 10 to give us an understanding of how you</p>



<p class="wp-block-paragraph">know powerful that digit is move one over to the left it&#8217;s 10 to the second power so that&#8217;s 100</p>



<p class="wp-block-paragraph">move one over to the left it&#8217;s 10 to the third power and so forth until we get to 10 to the fifth</p>



<p class="wp-block-paragraph">1 times 10 to the fifth power to understand how powerful that is so we can do the same exact thing</p>



<p class="wp-block-paragraph">with hexadecimal except instead of raising 10 to a power we raise 16 to a power because hexadecimal</p>



<p class="wp-block-paragraph">is base 16 whereas decimal is base 10. so that means this e is is uh you know 10 to the or sorry</p>



<p class="wp-block-paragraph">16 to the zero power and then that 3 is 16 to the 1 power and that f is 16 to the 2 power and so</p>



<p class="wp-block-paragraph">16 to the 2 power and so forth so first what we should do is let&#8217;s write out a</p>



<p class="wp-block-paragraph">formula which won&#8217;t work in a calculator because we&#8217;re going to put some letters</p>



<p class="wp-block-paragraph">in there and then later we&#8217;ll translate the letters to actual values so we&#8217;ll</p>



<p class="wp-block-paragraph">start off with the e we&#8217;ll say e times 16 to the something power it&#8217;s going to be</p>



<p class="wp-block-paragraph">16 to the zero power okay so then the next digit is 3 so 3 times 16 to the</p>



<p class="wp-block-paragraph">And then the next thing is going to be F times 16 to the second power.</p>



<p class="wp-block-paragraph">And just as a reminder here, I&#8217;m starting with zero with the smallest digit.</p>



<p class="wp-block-paragraph">And I&#8217;m just working my way up in steps of one.</p>



<p class="wp-block-paragraph">So it&#8217;s zero power or raised to zero and raised to one and raised to two and just so forth all the way to the left.</p>



<p class="wp-block-paragraph">That number will just keep increasing by one.</p>



<p class="wp-block-paragraph">The exponent will increase by one.</p>



<p class="wp-block-paragraph">times 16 to the third power do it again um one times 16 to the fourth power do it again</p>



<p class="wp-block-paragraph">um d times 16 to the fourth power oh what did i do did i erase something</p>



<p class="wp-block-paragraph">0, 1, 2, 3, 4, 5.</p>



<p class="wp-block-paragraph">Oh, that was supposed to be a 5.</p>



<p class="wp-block-paragraph">Okay, maybe it&#8217;s good that I thought I made a mistake</p>



<p class="wp-block-paragraph">because that drew my attention to the bad exponent.</p>



<p class="wp-block-paragraph">Okay, so after the D is a B.</p>



<p class="wp-block-paragraph">B times 16 to the 6th power.</p>



<p class="wp-block-paragraph">And then one more.</p>



<p class="wp-block-paragraph">We&#8217;ll say 6 times 16 to the 7th power.</p>



<p class="wp-block-paragraph">And then another one.</p>



<p class="wp-block-paragraph">A times 16 to the, whoops, to the eighth power.</p>



<p class="wp-block-paragraph">And another one.</p>



<p class="wp-block-paragraph">One times 16 to the ninth power.</p>



<p class="wp-block-paragraph">Ninth power.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">So just double check your work real fast.</p>



<p class="wp-block-paragraph">You know, because I make typos all the time and I get things wrong all the time.</p>



<p class="wp-block-paragraph">So just double check.</p>



<p class="wp-block-paragraph">Zero, one, two, three, four, five, six, seven, eight, nine.</p>



<p class="wp-block-paragraph">It&#8217;s sequential.</p>



<p class="wp-block-paragraph">Double check the digits.</p>



<p class="wp-block-paragraph">6 b d 1 3 f 3 e okay so i got that right i&#8217;m not going to erase my work because if i end up screwing</p>



<p class="wp-block-paragraph">up the next part oh man is it going to be a hassle to correct so i&#8217;m just going to copy paste it here</p>



<p class="wp-block-paragraph">and then i&#8217;m going to start translating the letters to numbers anytime you see a number here like one</p>



<p class="wp-block-paragraph">time something it&#8217;s just one but every time you see a letter you have to translate that into</p>



<p class="wp-block-paragraph">in decimal. Remember in hex, we&#8217;ll say, what can I do?</p>



<p class="wp-block-paragraph">I can say A, B, C, D, E, F.</p>



<p class="wp-block-paragraph">And I can say that the A is worth 10.</p>



<p class="wp-block-paragraph">The B is worth 11.</p>



<p class="wp-block-paragraph">The C is worth 12.</p>



<p class="wp-block-paragraph">And the D is worth 13.</p>



<p class="wp-block-paragraph">The E is worth 14 and the F is worth 15.</p>



<p class="wp-block-paragraph">Well, maybe I should do the other numbers too.</p>



<p class="wp-block-paragraph">five, six, seven, eight, nine,</p>



<p class="wp-block-paragraph">just so we have a visual reminder</p>



<p class="wp-block-paragraph">of like what we&#8217;re even looking at.</p>



<p class="wp-block-paragraph">And I won&#8217;t write down what the digits are worth</p>



<p class="wp-block-paragraph">because they&#8217;re worth themselves, right?</p>



<p class="wp-block-paragraph">So like zero through nine, it&#8217;s just worth zero through nine.</p>



<p class="wp-block-paragraph">So now that we have this little translation table up here,</p>



<p class="wp-block-paragraph">anytime we see a letter,</p>



<p class="wp-block-paragraph">we can just translate it very quickly to the decimal value.</p>



<p class="wp-block-paragraph">So A is worth 10, we&#8217;ll put a 10 there.</p>



<p class="wp-block-paragraph">Maybe I&#8217;ll add some spacing so that this continues to line up.</p>



<p class="wp-block-paragraph">I see a B here, so the B is gonna be worth 11,</p>



<p class="wp-block-paragraph">11 add another space so it lines up i&#8217;m running out of room but i&#8217;ll try the d is worth 13 add</p>



<p class="wp-block-paragraph">another space so it lines up and then the f is worth 15 add another space so it lines up the e</p>



<p class="wp-block-paragraph">is worth 14 so i&#8217;ll add another space so it lines up okay let me just double check my work here a b d</p>



<p class="wp-block-paragraph">So now I&#8217;ve got like a big formula that I wrote out.</p>



<p class="wp-block-paragraph">I can literally now, I mean, you can do this in your head if you&#8217;re like a crazy genius,</p>



<p class="wp-block-paragraph">but I&#8217;m just going to paste this into a calculator and hit enter.</p>



<p class="wp-block-paragraph">And this is the number that we had originally in hex.</p>



<p class="wp-block-paragraph">Maybe I&#8217;ll put commas here to make things more fun.</p>



<p class="wp-block-paragraph">I don&#8217;t know.</p>



<p class="wp-block-paragraph">You don&#8217;t really need to do that, but I&#8217;m going to.</p>



<p class="wp-block-paragraph">So for me, it&#8217;s easier to read.</p>



<p class="wp-block-paragraph">this is uh like 113 trillion 478 no wait that&#8217;s a million and that&#8217;s a bill okay so 113 mil a</p>



<p class="wp-block-paragraph">billion 478 million 25 022. let me punch up my personal calculator here to make sure that i&#8217;m</p>



<p class="wp-block-paragraph">getting this right i&#8217;m not going to show this on the screen because i&#8217;ve just got this up</p>



<p class="wp-block-paragraph">on my host machine bet you didn&#8217;t know i&#8217;m inside of vm right now surprised you didn&#8217;t know that</p>



<p class="wp-block-paragraph">decimal and the number is supposed to be 113478025022 okay so we did this right we now know how</p>



<p class="wp-block-paragraph">to convert from hexadecimal to decimal and it&#8217;s pretty awesome right okay let&#8217;s do another number</p>



<p class="wp-block-paragraph">one that is not quite as hard let&#8217;s see how many digits do we have here one two three i think we</p>



<p class="wp-block-paragraph">5, 6, 7, 8, 9, 10.</p>



<p class="wp-block-paragraph">Yeah, okay, we had 10.</p>



<p class="wp-block-paragraph">Let&#8217;s do a five-digit hex number.</p>



<p class="wp-block-paragraph">Okay, maybe I&#8217;ll copy…</p>



<p class="wp-block-paragraph">I&#8217;ll copy just this table at the top</p>



<p class="wp-block-paragraph">since you don&#8217;t need it anymore,</p>



<p class="wp-block-paragraph">but I&#8217;m going to need it to do my calculations.</p>



<p class="wp-block-paragraph">So we&#8217;ll do 1, 2, 3, 4, 5,</p>



<p class="wp-block-paragraph">and I&#8217;ll just start randomly changing</p>



<p class="wp-block-paragraph">some of these numbers.</p>



<p class="wp-block-paragraph">Like an 8 over here, and how about like a 2?</p>



<p class="wp-block-paragraph">So I&#8217;ve got five numbers.</p>



<p class="wp-block-paragraph">This is OX.</p>



<p class="wp-block-paragraph">I&#8217;m going to say this is a hexadecimal number.</p>



<p class="wp-block-paragraph">Kind of ambiguous if we tell the reader this is a hex number,</p>



<p class="wp-block-paragraph">but then we put OX.</p>



<p class="wp-block-paragraph">Kind of don&#8217;t really need to tell them that it&#8217;s hex</p>



<p class="wp-block-paragraph">because OX tells you it&#8217;s hex.</p>



<p class="wp-block-paragraph">It&#8217;s not even part of the value.</p>



<p class="wp-block-paragraph">So let&#8217;s get on with it.</p>



<p class="wp-block-paragraph">I&#8217;ll start by just doing 8 times 16 to the something power,</p>



<p class="wp-block-paragraph">which is going to be 0 for that first position.</p>



<p class="wp-block-paragraph">the power as we go to the left so it&#8217;s going to be 1 times 16 to the first power and then it&#8217;s</p>



<p class="wp-block-paragraph">going to be f times 16 to the second power and then it&#8217;s going to be 2 times 16 to the third</p>



<p class="wp-block-paragraph">power oh no my thoughts are wandering i think i&#8217;m getting bored of recording this video i&#8217;m starting</p>



<p class="wp-block-paragraph">to the fourth power but honestly why couldn&#8217;t they end up together so and</p>



<p class="wp-block-paragraph">then I think one two three four five okay so that&#8217;s five digits a to f one</p>



<p class="wp-block-paragraph">eight a to f one eight all right zero one two three four just to make sure</p>



<p class="wp-block-paragraph">that I got my exponents right copy paste it so I don&#8217;t have to repeat my work if</p>



<p class="wp-block-paragraph">I get something wrong I&#8217;m gonna translate the letters into numbers so a</p>



<p class="wp-block-paragraph">becomes 10 f becomes 15 and the other numbers are fine as is I can just copy</p>



<p class="wp-block-paragraph">fine as is I can just copy paste this whole thing stick it into a calculator and now I know that</p>



<p class="wp-block-paragraph">this number is actually 667 416 with a little comma in there don&#8217;t put commas if you are taking an</p>



<p class="wp-block-paragraph">exam somewhere if you&#8217;re watching my video to help with your exam because most most likely the exam</p>



<p class="wp-block-paragraph">that you&#8217;re taking will not accept a comma it&#8217;s not been pre-programmed for a comma I don&#8217;t know</p>



<p class="wp-block-paragraph">If you start typing numbers and a comma just shows up, then it probably was programmed for a comma.</p>



<p class="wp-block-paragraph">But don&#8217;t assume it might be a string match and not a numeric match.</p>



<p class="wp-block-paragraph">So be careful out there.</p>



<p class="wp-block-paragraph">Be careful.</p>



<p class="wp-block-paragraph">So 667-416.</p>



<p class="wp-block-paragraph">Let me punch this into my personal calculator just to make sure I got this right and I don&#8217;t have to issue an errata.</p>



<p class="wp-block-paragraph">667-416.</p>



<p class="wp-block-paragraph">All right.</p>



<p class="wp-block-paragraph">We&#8217;ve done it.</p>



<p class="wp-block-paragraph">We know how to convert hexadecimal numbers into decimal numbers.</p>



<p class="wp-block-paragraph">Thank you so much for watching this video. I hope you enjoyed it and had a little bit of fun and</p>



<p class="wp-block-paragraph">learned a little bit of stuff. I&#8217;ll see you in the next video. Hey everybody, thanks for watching</p>



<p class="wp-block-paragraph">this video again from the bottom of my heart. I really appreciate it. I do hope you did learn</p>



<p class="wp-block-paragraph">something and have some fun. If you could do me a please, a small little favor, could you please</p>



<p class="wp-block-paragraph">subscribe and follow this channel or these videos or whatever it is you do on the current social</p>



<p class="wp-block-paragraph">It would really mean the world to me and it&#8217;ll help make more videos and grow this community.</p>



<p class="wp-block-paragraph">So we&#8217;ll be able to do more videos, longer videos, better videos, or just I&#8217;ll be able to keep making videos in general.</p>



<p class="wp-block-paragraph">So please do me a kindness and subscribe.</p>



<p class="wp-block-paragraph">You know, sometimes I&#8217;m sleeping in the middle of the night and I just wake up because I know somebody subscribed or followed.</p>



<p class="wp-block-paragraph">It just wakes me up and I get filled with joy.</p>



<p class="wp-block-paragraph">That&#8217;s exactly what happens every single time.</p>



<p class="wp-block-paragraph">So you could do it as a nice favor to me or you could troll me if you want to just wake me up in the middle of the night.</p>



<p class="wp-block-paragraph">Just subscribe.</p>



<p class="wp-block-paragraph">just wake me up in the middle of the night just subscribe and then I&#8217;ll just</p>



<p class="wp-block-paragraph">wake up I promise that&#8217;s what will happen also if you look at the middle of</p>



<p class="wp-block-paragraph">the screen right now you should see a QR code which you can scan in order to go</p>



<p class="wp-block-paragraph">to the website which I think is also named somewhere at the bottom of this</p>



<p class="wp-block-paragraph">video and it&#8217;ll take you to my main website where you can just kind of like</p>



<p class="wp-block-paragraph">see all the videos I published and the services and tutorials and things that I</p>



<p class="wp-block-paragraph">for clarifications or errata or just future videos that you want to see please leave a comment or if</p>



<p class="wp-block-paragraph">you just want to say hey what&#8217;s up what&#8217;s going on you know just send me a comment whatever I also</p>



<p class="wp-block-paragraph">wake up for those in the middle of the night I get I wake up in a cold sweat and I&#8217;m like</p>



<p class="wp-block-paragraph">it would really it really mean the world to me I would really appreciate it so again thank you so</p>



<p class="wp-block-paragraph">much for watching this video and enjoy the cool music as as I fade into the darkness which is</p>



<p class="wp-block-paragraph">the darkness which is coming for us all.</p>



<p class="wp-block-paragraph">Thank you.</p>
<p>The post <a href="https://www.NeuralLantern.com/hex-to-decimal-made-easy-fun-simple-conversion-guide/">Hex to Decimal Made Easy: Fun &amp; Simple Conversion Guide!</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/hex-to-decimal-made-easy-fun-simple-conversion-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Binary to Hex Conversion Made EASY! No Math Needed!</title>
		<link>https://www.NeuralLantern.com/binary-to-hex-conversion-made-easy-no-math-needed/</link>
					<comments>https://www.NeuralLantern.com/binary-to-hex-conversion-made-easy-no-math-needed/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Fri, 02 May 2025 09:21:04 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Conversions]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[binary conversion]]></category>
		<category><![CDATA[binary numbers]]></category>
		<category><![CDATA[binary to hex conversion]]></category>
		<category><![CDATA[coding tutorials]]></category>
		<category><![CDATA[computer basics]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[hex conversion]]></category>
		<category><![CDATA[hexadecimal]]></category>
		<category><![CDATA[hexadecimal numbers]]></category>
		<category><![CDATA[learn programming]]></category>
		<category><![CDATA[number systems]]></category>
		<category><![CDATA[programming for beginners]]></category>
		<category><![CDATA[tech tutorials]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=93</guid>

					<description><![CDATA[<p>Learn binary to hex conversion without math! Simple patterns for computer science students. Watch now for easy tips! #Binary #Hex</p>
<p>The post <a href="https://www.NeuralLantern.com/binary-to-hex-conversion-made-easy-no-math-needed/">Binary to Hex Conversion Made EASY! No Math Needed!</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="Binary to Hex Conversion Made EASY! No Math Needed!" width="1380" height="776" src="https://www.youtube.com/embed/9hrPr95c8JA?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p class="wp-block-paragraph">Hey there! Struggling with binary to hex conversions? This video makes it SUPER easy—no math required! Learn to convert between binary and hexadecimal with simple patterns you’ll memorize in no time. Perfect for computer science students, coders, or anyone curious about how computers work. Subscribe for more tutorials, and scan the QR code to visit my site for extra resources. Drop a comment with your questions or video ideas! #Binary #Hex #ComputerScience #Coding</p>



<p class="wp-block-paragraph">Introduction to Binary and Hex Conversion 00:00:00<br>Why Convert Between Binary and Hex 00:00:13<br>Recap of Number Systems 00:00:41<br>Binary Base Two System 00:01:01<br>Hexadecimal Base Sixteen System 00:01:24<br>Benefits of Hexadecimal 00:02:06<br>Simplifying Binary-Hex Conversion 00:03:04<br>Four Bits Equal One Hex Digit 00:04:32<br>Memorizing Binary-Hex Patterns 00:05:13<br>Creating a Binary-Hex Conversion Table 00:06:26<br>Converting Hex to Binary Example 00:08:52<br>Understanding Nibbles and Bytes 00:10:44<br>Converting Binary to Hex Example 00:13:19<br>Conclusion and Verification 00:15:38<br>Call to Subscribe and Engage 00:16:20</p>



<p class="wp-block-paragraph">Thanks for watching!</p>



<p class="wp-block-paragraph">Find us on other social media here:</p>



<ul class="wp-block-list">
<li>https://www.NeuralLantern.com/social</li>
</ul>



<p class="wp-block-paragraph">Please help support us!</p>



<ul class="wp-block-list">
<li>Subscribing + Sharing on Social Media</li>



<li>Leaving a comment or suggestion</li>



<li>Subscribing to our Blog</li>



<li>Watching the main &#8220;pinned&#8221; video of this channel for offers and extras</li>
</ul>



<p class="wp-block-paragraph">Hi there! Let&#8217;s talk about converting back and forth between binary and hexadecimal.</p>



<p class="wp-block-paragraph">Why would you want to do that? Well, maybe you&#8217;re in computer science. Maybe you&#8217;ve been presented</p>



<p class="wp-block-paragraph">with some numbers that you need to convert. Maybe you have like a bunch of ones and zeros.</p>



<p class="wp-block-paragraph">Maybe you have like an ox and then something that looks really weird. It&#8217;s got some letters in it,</p>



<p class="wp-block-paragraph">but it&#8217;s also got some numbers. And you&#8217;re trying to figure out what are these? What are we trying</p>



<p class="wp-block-paragraph">we try to convert back and forth between.</p>



<p class="wp-block-paragraph">You should have watched my other videos by now,</p>



<p class="wp-block-paragraph">which will teach you how to convert back and forth</p>



<p class="wp-block-paragraph">between both of these number bases and decimal.</p>



<p class="wp-block-paragraph">So you can understand what they are</p>



<p class="wp-block-paragraph">in just normal human terms.</p>



<p class="wp-block-paragraph">But as a quick recap, decimal is a base 10 number system</p>



<p class="wp-block-paragraph">because we have 10 possible characters that we can use.</p>



<p class="wp-block-paragraph">We can say zero, one, two, three, four,</p>



<p class="wp-block-paragraph">five, six, seven, eight, nine.</p>



<p class="wp-block-paragraph">So that&#8217;s 10 total characters, zero through nine.</p>



<p class="wp-block-paragraph">We also have binary, which is what computers use, which is a base two system.</p>



<p class="wp-block-paragraph">It&#8217;s base two because the only characters you have available are just zero and one.</p>



<p class="wp-block-paragraph">So base two, two characters.</p>



<p class="wp-block-paragraph">You can represent a number between zero and one in a single digit.</p>



<p class="wp-block-paragraph">Then we have hexadecimal, which is a way to represent a number in a more compact way.</p>



<p class="wp-block-paragraph">system there because we have 16 possible characters we have 0 1 2 3 4 5 6 7 8 9</p>



<p class="wp-block-paragraph">just like decimal but then we add more numbers we had like six numbers we say</p>



<p class="wp-block-paragraph">a b c d e f and what happens is the a has a strength of 10 whereas the you know</p>



<p class="wp-block-paragraph">the 9 just to its left had a strength of 9 the a has a strength of 10 the b has a</p>



<p class="wp-block-paragraph">of 11 the c has a strength of 12 and the d has a strength of 13 and the e has a strength of 14</p>



<p class="wp-block-paragraph">and the f has a strength of 15 and so you know we just have more characters that we can use in one</p>



<p class="wp-block-paragraph">single digit which means we can rent we can represent the same number in decimal but just</p>



<p class="wp-block-paragraph">we can represent it smaller if we use hexadecimal so it&#8217;s kind of useful when you&#8217;re working with</p>



<p class="wp-block-paragraph">looking at bits in binary or hex and not necessarily decimal because binary as</p>



<p class="wp-block-paragraph">you&#8217;re going to learn in this video gives you kind of a good idea just by</p>



<p class="wp-block-paragraph">looking at it after you&#8217;ve practiced a little while gives you a good idea of</p>



<p class="wp-block-paragraph">what hex numbers you would be seeing if you were looking at the same number and</p>



<p class="wp-block-paragraph">vice versa if you&#8217;re looking at hex numbers if you look at them a lot in</p>



<p class="wp-block-paragraph">your daily life you&#8217;ll start to kind of like see through the matrix and you&#8217;ll</p>



<p class="wp-block-paragraph">And if you&#8217;re interested in finding what bits are on and off,</p>



<p class="wp-block-paragraph">it&#8217;s convenient to be able to look at a hexadecimal number</p>



<p class="wp-block-paragraph">and kind of intuitively know,</p>



<p class="wp-block-paragraph">okay, those bits are probably like on and off.</p>



<p class="wp-block-paragraph">Those bits are all on, you know, whatever.</p>



<p class="wp-block-paragraph">So this is the basics of number basis.</p>



<p class="wp-block-paragraph">Here&#8217;s a trick.</p>



<p class="wp-block-paragraph">In all my other videos,</p>



<p class="wp-block-paragraph">when we converted back and forth</p>



<p class="wp-block-paragraph">between decimal and binary and hex and all that stuff,</p>



<p class="wp-block-paragraph">we used multiplication, we used division,</p>



<p class="wp-block-paragraph">you know, we messed with the numbers quite a bit.</p>



<p class="wp-block-paragraph">the great thing about binary and hex conversions is you don&#8217;t even really need to do math.</p>



<p class="wp-block-paragraph">Maybe a little math at first while you&#8217;re learning, but eventually when you get used to it,</p>



<p class="wp-block-paragraph">you start to realize you can memorize short patterns. Let me bring your attention to the</p>



<p class="wp-block-paragraph">fact that in hexadecimal, you have 16 possible combinations, or you can represent a number</p>



<p class="wp-block-paragraph">you can do the same thing in four characters if I had four characters right</p>



<p class="wp-block-paragraph">here in binary very quickly you could do the calculation in your head if you&#8217;ve</p>



<p class="wp-block-paragraph">watched my other videos you can see well that one counts for a one and this one</p>



<p class="wp-block-paragraph">counts for a two and this one counts for a four and this one counts for an eight</p>



<p class="wp-block-paragraph">if I want to know what the maximum value is that I could represent with four</p>



<p class="wp-block-paragraph">digits I just take the the top numbers strength multiply it by two and then</p>



<p class="wp-block-paragraph">strength multiply it by 2 and then subtract 1. So if we have 1, 2, 4, 8, I&#8217;ll just multiply 8 by 2,</p>



<p class="wp-block-paragraph">that&#8217;s 16, and then subtract 1, that&#8217;s 15. So I can represent a number between 0 and 15 with 4</p>



<p class="wp-block-paragraph">binary digits. But I just said you could do that with one hexadecimal digit, right?</p>



<p class="wp-block-paragraph">So that means one hexadecimal digit is actually four binary digits. And if you just memorize</p>



<p class="wp-block-paragraph">16 combinations of numbers, which is not like that hard.</p>



<p class="wp-block-paragraph">And even if you don&#8217;t memorize them all,</p>



<p class="wp-block-paragraph">I don&#8217;t have them all memorized.</p>



<p class="wp-block-paragraph">It&#8217;s really easy to convert in your head</p>



<p class="wp-block-paragraph">a four digit binary number to decimal</p>



<p class="wp-block-paragraph">and then convert that back to hexadecimal pretty fast,</p>



<p class="wp-block-paragraph">hexadecimal.</p>



<p class="wp-block-paragraph">So what&#8217;s the equivalent of 1111?</p>



<p class="wp-block-paragraph">Well, we know it&#8217;s the highest possible value</p>



<p class="wp-block-paragraph">with just one hexadecimal digit.</p>



<p class="wp-block-paragraph">So that would have to be an F.</p>



<p class="wp-block-paragraph">So you can memorize already</p>



<p class="wp-block-paragraph">You can memorize already a couple of really, really easy combinations.</p>



<p class="wp-block-paragraph">We could say, let me say zero binary, OB to say that we&#8217;re looking at binary is equal</p>



<p class="wp-block-paragraph">to zero X F. So just the letter F in hex.</p>



<p class="wp-block-paragraph">Remember that we like to prefix different base number systems to give the reader a reminder</p>



<p class="wp-block-paragraph">of what base they&#8217;re looking at.</p>



<p class="wp-block-paragraph">one i&#8217;m going to say that 000 in binary is just zero in hex if i didn&#8217;t put that prefix how would</p>



<p class="wp-block-paragraph">you know if you&#8217;re looking at hex or binary or decimal it would be even more confusing if you</p>



<p class="wp-block-paragraph">had like you know one two zero is that hex one two zero or is that uh decimal one two zero i guess it</p>



<p class="wp-block-paragraph">can&#8217;t be binary one two zero but if we did one one zero now it could be binary or hex or decimal so</p>



<p class="wp-block-paragraph">i&#8217;m just going to put uh zero b for binary and i&#8217;m going to say it&#8217;s zero so that&#8217;s two of the</p>



<p class="wp-block-paragraph">of the 16 total possible combinations that we would memorize.</p>



<p class="wp-block-paragraph">So let&#8217;s iterate through all the combinations.</p>



<p class="wp-block-paragraph">Just for the sake of making this table more compact,</p>



<p class="wp-block-paragraph">actually, let me start a new little notepad page here.</p>



<p class="wp-block-paragraph">I&#8217;m going to omit those prefixes because those are a good idea,</p>



<p class="wp-block-paragraph">but while we&#8217;re doing our lookups, they&#8217;re a little irritating.</p>



<p class="wp-block-paragraph">So I&#8217;m going to take them out.</p>



<p class="wp-block-paragraph">So I&#8217;m going to say 0001.</p>



<p class="wp-block-paragraph">Let me say this.</p>



<p class="wp-block-paragraph">So I&#8217;m just going to count from 0 to 15 in binary.</p>



<p class="wp-block-paragraph">to 15 in binary.</p>



<p class="wp-block-paragraph">So this is going to be one, one,</p>



<p class="wp-block-paragraph">and then zero and then zero, one, zero, one, zero, one,</p>



<p class="wp-block-paragraph">I don&#8217;t know, that&#8217;s a lot of copy pasting.</p>



<p class="wp-block-paragraph">Let me just double check here that I&#8217;m doing this right.</p>



<p class="wp-block-paragraph">I should have 16 lines.</p>



<p class="wp-block-paragraph">I don&#8217;t, so I&#8217;ve done something wrong.</p>



<p class="wp-block-paragraph">Let&#8217;s see.</p>



<p class="wp-block-paragraph">So this is like 0, 1, 2, 3, and this is 4.</p>



<p class="wp-block-paragraph">This is 5, and then 6, and then 7, and this is 8.</p>



<p class="wp-block-paragraph">Oh, I have that twice.</p>



<p class="wp-block-paragraph">Okay, 8.</p>



<p class="wp-block-paragraph">And then since I copy pasted the bottom part,</p>



<p class="wp-block-paragraph">I think I can probably assume that&#8217;s okay.</p>



<p class="wp-block-paragraph">One, two, three, four, five, six, seven.</p>



<p class="wp-block-paragraph">That was kind of spooky.</p>



<p class="wp-block-paragraph">I guess a lesson learned is that relying on a battery pack</p>



<p class="wp-block-paragraph">or a light that&#8217;s gonna stay on for many hours</p>



<p class="wp-block-paragraph">is probably a dumb idea.</p>



<p class="wp-block-paragraph">Anyway, continuing, we have this table here.</p>



<p class="wp-block-paragraph">We have like 16 possible combinations.</p>



<p class="wp-block-paragraph">So now I&#8217;m gonna map these to hexadecimal digits.</p>



<p class="wp-block-paragraph">uh you know like 10 are going to be really easy right it&#8217;s just going to be zero and then one</p>



<p class="wp-block-paragraph">and then two you can make a vertical table if you want for yourself I&#8217;m just doing it this way</p>



<p class="wp-block-paragraph">because it&#8217;s easier the way that I&#8217;m typing in this notepad the way that I&#8217;m typing in this</p>



<p class="wp-block-paragraph">notepad so I&#8217;m going to do seven eight nine and then when we get to 10 let me just double check</p>



<ol start="10" class="wp-block-list">
<li>So this is eight plus two. So that means this is indeed a 10 and oh, 10 in hex, not a decimal.</li>
</ol>



<p class="wp-block-paragraph">So that&#8217;s a and then B and then C and then D and then E and then F. Okay. So now that we have this</p>



<p class="wp-block-paragraph">little table set up, you know, if you want to write it horizontally, that&#8217;s fine. It&#8217;s actually</p>



<p class="wp-block-paragraph">binary and hex now imagine we have a gigantic hex number zero x and then i&#8217;m just going to do like a</p>



<p class="wp-block-paragraph">bunch of numbers and then i&#8217;m going to do change some of these to like letters just to make things</p>



<p class="wp-block-paragraph">more interesting a b c d e did i use any d e f e b i didn&#8217;t use a b oh there we go and i&#8217;ll put like</p>



<p class="wp-block-paragraph">another aid in there okay so this is huge and this would take like a while to calculate right</p>



<p class="wp-block-paragraph">to calculate right if you were going to convert it to decimal for hex to binary conversion it&#8217;s</p>



<p class="wp-block-paragraph">actually pretty easy you literally just go b what is b b is that so b is just that you don&#8217;t even</p>



<p class="wp-block-paragraph">have to do any math let me copy paste this down here so i can show you a really easy way to do</p>



<p class="wp-block-paragraph">D is this right here.</p>



<p class="wp-block-paragraph">So I&#8217;m going to say the D is that.</p>



<p class="wp-block-paragraph">And then the 6 is that pattern right there.</p>



<p class="wp-block-paragraph">So move you over.</p>



<p class="wp-block-paragraph">1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4.</p>



<p class="wp-block-paragraph">Maybe that&#8217;ll line up later, hopefully.</p>



<p class="wp-block-paragraph">So the 1 is pretty easy.</p>



<p class="wp-block-paragraph">Probably didn&#8217;t even need to copy-paste that.</p>



<p class="wp-block-paragraph">I could have just looked at it and typed.</p>



<p class="wp-block-paragraph">looked at it and typed the E is going to be that and the seven is going to be that</p>



<p class="wp-block-paragraph">and the two is going to be this eight see what I&#8217;m doing I&#8217;m literally just</p>



<p class="wp-block-paragraph">copy pasting the bit patterns if you don&#8217;t have copy paste when you&#8217;re doing your conversion</p>



<p class="wp-block-paragraph">that&#8217;s okay you can at least write down zeros and ones really fast if it&#8217;s just</p>



<p class="wp-block-paragraph">you know four at a time I should also point out that um you know this is pretty important to</p>



<p class="wp-block-paragraph">good term that people like to use. Four bytes or one hexadecimal digit, it&#8217;s called a nibble.</p>



<p class="wp-block-paragraph">So usually you&#8217;re used to seeing eight bytes in a row and you call that, sorry,</p>



<p class="wp-block-paragraph">usually you&#8217;re used to seeing eight bits in a row and you call that a byte or two hex digits in a</p>



<p class="wp-block-paragraph">row and you call that a byte. If you just see four bits or one hex digit, that&#8217;s a nibble.</p>



<p class="wp-block-paragraph">Two nibbles make a byte. Try to remember that. So we have this giant thing here.</p>



<p class="wp-block-paragraph">we have literally now successfully converted binary.</p>



<p class="wp-block-paragraph">I&#8217;m going to put, I&#8217;m just going to put OB here</p>



<p class="wp-block-paragraph">and then remove all the spaces.</p>



<p class="wp-block-paragraph">This is the binary number that we originally had</p>



<p class="wp-block-paragraph">in hexadecimal.</p>



<p class="wp-block-paragraph">So again, just to emphasize, these are the two same numbers.</p>



<p class="wp-block-paragraph">They&#8217;re just represented differently.</p>



<p class="wp-block-paragraph">Differently.</p>



<p class="wp-block-paragraph">Let me punch this into my personal calculator</p>



<p class="wp-block-paragraph">to make sure that I gave you the right walkthrough</p>



<p class="wp-block-paragraph">so I don&#8217;t have to correct in a video later.</p>



<p class="wp-block-paragraph">so expression X result binary oh god I can&#8217;t even I can&#8217;t even read that okay</p>



<p class="wp-block-paragraph">so let me let me do it backwards I&#8217;m gonna copy paste this one in there okay</p>



<p class="wp-block-paragraph">so let&#8217;s see X okay so it&#8217;s telling me that supposed to get to B and then a D6</p>



<p class="wp-block-paragraph">728fac. Okay, so I did it. And this is also a good reminder that you kind of want to pair off</p>



<p class="wp-block-paragraph">into groups of one byte at least. So, you know, each two characters, that&#8217;s one byte. One character</p>



<p class="wp-block-paragraph">by itself is a nibble. So you want to pair off into bytes. And notice how this b is all by itself.</p>



<p class="wp-block-paragraph">So you want to pad to the left with a zero so that you&#8217;re just kind of working with bytes.</p>



<p class="wp-block-paragraph">It&#8217;s easier on the eyes and the brain. And you&#8217;ll usually see something like this</p>



<p class="wp-block-paragraph">output from a program or something. In fact, you might see something like this representing,</p>



<p class="wp-block-paragraph">here&#8217;s a word, or you might see something like this showing that this is like a D word or,</p>



<p class="wp-block-paragraph">you know, like a 32 bit number. And if we wanted to say, oh, this is a 64 bit system. So let&#8217;s</p>



<p class="wp-block-paragraph">look at 64 bits. Let&#8217;s look at eight bytes. Then we&#8217;ll just like pad it with, let&#8217;s see, one, two,</p>



<p class="wp-block-paragraph">that&#8217;s one, two, three, we&#8217;ll pad it with a bunch more zeros. One, two, three, four, five, six,</p>



<p class="wp-block-paragraph">So this is a proper 64-bit number or an 8-byte number that works with modern systems,</p>



<p class="wp-block-paragraph">whether you have the space in there or not.</p>



<p class="wp-block-paragraph">And so I&#8217;m not going to do another example from hex to binary.</p>



<p class="wp-block-paragraph">Let&#8217;s do a quick example from binary to hex.</p>



<p class="wp-block-paragraph">It should be just as easy.</p>



<p class="wp-block-paragraph">So I&#8217;m going to start a new tab here and just copy-paste the table that I made.</p>



<p class="wp-block-paragraph">Let&#8217;s make a bunch of random numbers for binary.</p>



<p class="wp-block-paragraph">And so now we&#8217;ve got like a bunch of numbers.</p>



<p class="wp-block-paragraph">All we have to do is I&#8217;m going to copy paste this so I don&#8217;t ruin the original thing that</p>



<p class="wp-block-paragraph">I wrote down.</p>



<p class="wp-block-paragraph">And I&#8217;m just going to break it up into groups of four, starting from the least powerful</p>



<p class="wp-block-paragraph">digits, you know, like all the way on the right.</p>



<p class="wp-block-paragraph">So I&#8217;m going to go doop, doop.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">So after breaking it into groups of four, you can see that the, you know, the most powerful</p>



<p class="wp-block-paragraph">digit there is a one all by its lonesome.</p>



<p class="wp-block-paragraph">I could put 000 to make sure that they&#8217;re all groups of four bits. I don&#8217;t really have to because</p>



<p class="wp-block-paragraph">I could still kind of understand just by looking at the one that it&#8217;s going to end up being a one</p>



<p class="wp-block-paragraph">and then literally just translate it the same way I did before. Okay that&#8217;s a 1.</p>



<p class="wp-block-paragraph">1 0 1 0 that&#8217;s an A. What&#8217;s a thousand and one? It is a nine. What&#8217;s a 0 100?</p>



<p class="wp-block-paragraph">what&#8217;s one oh one oh a what&#8217;s a thousand and one didn&#8217;t i just do that that&#8217;s a nine</p>



<p class="wp-block-paragraph">what&#8217;s a zero zero oh ten that&#8217;s going to be a two for sure yeah two i finally got one off the</p>



<p class="wp-block-paragraph">top of my head one zero one one that&#8217;s a b and then uh basically 15 minus eight i don&#8217;t really</p>



<p class="wp-block-paragraph">want to work that out of my head right now so i&#8217;m gonna look at the table seven okay i guess i</p>



<p class="wp-block-paragraph">should have done that easy right like how fast was that so i&#8217;m just going to copy paste these</p>



<p class="wp-block-paragraph">put an ox in front of it and maybe bunch them into groups of two first to see what&#8217;s up</p>



<p class="wp-block-paragraph">okay so they&#8217;re not in groups of two that means this one is kind of i should have started grouping</p>



<p class="wp-block-paragraph">them on the right side kind of messed it up someone just you know rearrange the grouping</p>



<p class="wp-block-paragraph">Let me punch this into my personal calculator to make sure that I got this right. Actually, let me do this original number here</p>



<p class="wp-block-paragraph">I must say</p>



<p class="wp-block-paragraph">This binary number is supposed to be</p>



<p class="wp-block-paragraph">1 a 9 4 a 9 2 b 7. Okay, we did it</p>



<p class="wp-block-paragraph">Really easy, right? So every time you have to convert back and forth between binary and hex</p>



<p class="wp-block-paragraph">It&#8217;s your lucky day because that&#8217;s like one of the easiest conversions you could do</p>



<p class="wp-block-paragraph">Thanks for watching this video. I hope you learned a little bit of stuff and had some fun</p>



<p class="wp-block-paragraph">I&#8217;ll see you in the next video.</p>



<p class="wp-block-paragraph">So we&#8217;ll be able to do more videos longer videos better videos or just I&#8217;ll be able to keep making videos in general</p>



<p class="wp-block-paragraph">So please do do me a kindness and and subscribe</p>



<p class="wp-block-paragraph">You know sometimes I&#8217;m sleeping in the middle of the night</p>



<p class="wp-block-paragraph">And I just wake up because I know somebody subscribed or followed it just wakes me up and I get filled with joy</p>



<p class="wp-block-paragraph">That&#8217;s exactly what happens every single time</p>



<p class="wp-block-paragraph">So you could do it as a nice favor to me or you could you control me if you want to just wake me up in the middle</p>



<p class="wp-block-paragraph">And I just subscribe and then I&#8217;ll just wake up. I promise that&#8217;s what will happen</p>



<p class="wp-block-paragraph">that&#8217;s what will happen also uh if you look at the middle of the screen right now you should see a</p>



<p class="wp-block-paragraph">qr code which you can scan in order to go to the website which i think is also named somewhere at</p>



<p class="wp-block-paragraph">the bottom of this video and it&#8217;ll take you to my main website where you can just kind of like see</p>



<p class="wp-block-paragraph">all the videos i published and the services and tutorials and things that i offer and all that</p>



<p class="wp-block-paragraph">good stuff and uh if you have a suggestion for uh uh clarifications or errata or just future videos</p>



<p class="wp-block-paragraph">future videos that you want to see please leave a comment or if you just want to say hey what&#8217;s up</p>



<p class="wp-block-paragraph">what&#8217;s going on you know just send me a comment whatever i also wake up for those in the middle</p>



<p class="wp-block-paragraph">of the night i get i wake up in a cold sweat and i&#8217;m like it would really it really mean the world</p>



<p class="wp-block-paragraph">to me i would really appreciate it so again thank you so much for watching this video and um enjoy</p>



<p class="wp-block-paragraph">the cool music as as i fade into the darkness which is coming for us all</p>



<p class="wp-block-paragraph">Thank you.</p>
<p>The post <a href="https://www.NeuralLantern.com/binary-to-hex-conversion-made-easy-no-math-needed/">Binary to Hex Conversion Made EASY! No Math Needed!</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/binary-to-hex-conversion-made-easy-no-math-needed/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Convert Decimal to Hexadecimal: Fun &#038; Easy Guide for Beginners</title>
		<link>https://www.NeuralLantern.com/how-to-convert-decimal-to-hexadecimal-fun-easy-guide-for-beginners/</link>
					<comments>https://www.NeuralLantern.com/how-to-convert-decimal-to-hexadecimal-fun-easy-guide-for-beginners/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Sun, 13 Apr 2025 00:54:33 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Conversions]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[beginner programming]]></category>
		<category><![CDATA[binary to hex]]></category>
		<category><![CDATA[coding for beginners]]></category>
		<category><![CDATA[coding tips]]></category>
		<category><![CDATA[coding tutorial]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[decimal to hexadecimal]]></category>
		<category><![CDATA[hex explained]]></category>
		<category><![CDATA[hexadecimal conversion]]></category>
		<category><![CDATA[learn to code]]></category>
		<category><![CDATA[math for coding]]></category>
		<category><![CDATA[number systems]]></category>
		<category><![CDATA[programming basics]]></category>
		<category><![CDATA[tech tutorials]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=88</guid>

					<description><![CDATA[<p>"Hexadecimal uses 0-9 and A-F to represent 16 values, making it shorter than binary. Learn to convert decimal to hex with this fun, step-by-step guide!</p>
<p>The post <a href="https://www.NeuralLantern.com/how-to-convert-decimal-to-hexadecimal-fun-easy-guide-for-beginners/">How to Convert Decimal to Hexadecimal: Fun &amp; Easy Guide for Beginners</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-embed is-type-wp-embed is-provider-rumble-com wp-block-embed-rumble-com"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted" title="How to Convert Decimal to Hexadecimal: Fun &amp; Easy Guide for Beginners" src="https://rumble.com/embed/v6ptsuf/#?secret=pWTtkdDlLf" data-secret="pWTtkdDlLf" width="1000" height="563" frameborder="0"></iframe>
</div></figure>



<p class="wp-block-paragraph">Want to master decimal-to-hexadecimal conversion? Join me in this fun, beginner-friendly tutorial where we break it down with clear examples?like turning 223 into 0xDF! From number systems to handy calculator tricks, I?ll guide you step-by-step, no stress. Bonus: my dog makes a cameo! Perfect for coding newbies or anyone curious about hex. Subscribe for more easy tech tutorials, and let me know what you want to learn next! #DecimalToHex #CodingBasics #LearnToCode</p>



<p class="wp-block-paragraph">Introduction 00:00:00<br>Number Systems Overview 00:00:12<br>Decimal vs. Hexadecimal 00:00:39<br>Hexadecimal Digits Explained 00:01:06<br>Conversion Process Introduction 00:01:40<br>First Conversion Example Start 00:02:10<br>Handling Remainders 00:02:38<br>Dog Interruption 00:03:16<br>Continuing First Conversion 00:03:43<br>Finalizing First Conversion 00:06:04<br>Reversing Digits Order 00:06:24<br>Mapping Numbers to Hex Letters 00:07:34<br>Verifying First Conversion 00:08:48<br>Hexadecimal Prefix Importance 00:10:57<br>Second Conversion Example (223) 00:11:34<br>Third Conversion Example (2816) 00:13:32<br>Hex and Binary Relationship 00:14:56<br>Padding Zeros in Hex 00:16:07<br>Video Conclusion 00:16:58</p>



<p class="wp-block-paragraph">Thanks for watching!</p>



<p class="wp-block-paragraph">Find us on other social media here:</p>



<ul class="wp-block-list">
<li>https://www.NeuralLantern.com/social</li>
</ul>



<p class="wp-block-paragraph">Please help support us!</p>



<ul class="wp-block-list">
<li>Subscribing + Sharing on Social Media</li>



<li>Leaving a comment or suggestion</li>



<li>Subscribing to our Blog</li>



<li>Watching the main &#8220;pinned&#8221; video of this channel for offers and extras</li>
</ul>



<p class="wp-block-paragraph">Hello there.</p>



<p class="wp-block-paragraph">Let&#8217;s talk about converting decimal to hexadecimal.</p>



<p class="wp-block-paragraph">Hopefully you&#8217;ve watched my other videos by now, but basically we have different number</p>



<p class="wp-block-paragraph">systems, number bases that we can use.</p>



<p class="wp-block-paragraph">We have decimal, which is a base 10.</p>



<p class="wp-block-paragraph">which is base 10 or sorry base 16.</p>



<p class="wp-block-paragraph">We can basically convert back and forth between all of these systems.</p>



<p class="wp-block-paragraph">We can represent the exact same number just in different ways.</p>



<p class="wp-block-paragraph">Just as a quick refresher.</p>



<p class="wp-block-paragraph">Decimal, we can have characters that are 0 through 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.</p>



<p class="wp-block-paragraph">That&#8217;s 10 total characters.</p>



<p class="wp-block-paragraph">That&#8217;s why it&#8217;s base 10.</p>



<p class="wp-block-paragraph">In binary, we have, you know, just characters 0 and 1.</p>



<p class="wp-block-paragraph">characters 0 and 1 and in hexadecimal it&#8217;s meant to compact the representation a little bit it has</p>



<p class="wp-block-paragraph">more characters or more possible characters per digit than decimal so the number is going to be</p>



<p class="wp-block-paragraph">a little bit shorter usually unless it&#8217;s like very very small than decimal and it&#8217;ll be a lot shorter</p>



<p class="wp-block-paragraph">than the same number in binary so in hexadecimal we start off with 0 1 2 3 4 5 6 7 8 9</p>



<p class="wp-block-paragraph">three, four, five, six, seven, eight, nine.</p>



<p class="wp-block-paragraph">And then to get the remaining digits, we just go A, B, C, D, E, F.</p>



<p class="wp-block-paragraph">So we have this many characters.</p>



<p class="wp-block-paragraph">It&#8217;s 16 total characters.</p>



<p class="wp-block-paragraph">We can represent a number between 0 and 15.</p>



<p class="wp-block-paragraph">So that&#8217;s a difference between, you know, hexadecimal and decimal.</p>



<p class="wp-block-paragraph">Now let&#8217;s learn how to actually convert.</p>



<p class="wp-block-paragraph">So I&#8217;m going to start off with a number.</p>



<p class="wp-block-paragraph">I&#8217;m just going to type like a random number here.</p>



<p class="wp-block-paragraph">Hopefully this doesn&#8217;t go on for too long, the conversion.</p>



<p class="wp-block-paragraph">decimal number is just that. How do we convert? If you watch my other videos, it&#8217;s basically the</p>



<p class="wp-block-paragraph">same thing as converting from decimal to binary, except instead of dividing by two, because binary</p>



<p class="wp-block-paragraph">is base two, we&#8217;ll divide by 16 because hex is base 16. So I&#8217;m going to start off by saying,</p>



<p class="wp-block-paragraph">let&#8217;s take the original number and we&#8217;ll divide it by not two, 16. What does that equal? There&#8217;s</p>



<p class="wp-block-paragraph">no way I&#8217;m doing this in my head. So I&#8217;m just going to use a calculator for every single step,</p>



<p class="wp-block-paragraph">going to use a calculator for every single step not even going to try I&#8217;m</p>



<p class="wp-block-paragraph">going to say this number divided by 16 is 5 1 1 7 5 7 with some sort of a</p>



<p class="wp-block-paragraph">remainder so I&#8217;m gonna go 5 1 1 7 5 7 remainder something so in most</p>



<p class="wp-block-paragraph">calculators you can just punch up the modulo operator which is like the</p>



<p class="wp-block-paragraph">percent symbol before I do that I just want to point out 0.75 is 3 4ths of</p>



<p class="wp-block-paragraph">of whatever it is that is one you know that one character can represent we know</p>



<p class="wp-block-paragraph">we can represent 16 different values what&#8217;s 16 divided by 4 that&#8217;s 4 so three</p>



<p class="wp-block-paragraph">of those should be like 12 I hope unless I&#8217;m saying something totally wrong so</p>



<p class="wp-block-paragraph">I&#8217;m gonna do modulo so that&#8217;s 12 okay remainder 12 my dog is growling at me</p>



<p class="wp-block-paragraph">He likes to lie about peeing.</p>



<p class="wp-block-paragraph">He doesn&#8217;t actually pee.</p>



<p class="wp-block-paragraph">He already did a huge pee and then three times after that at 20 minute intervals, he went</p>



<p class="wp-block-paragraph">out there and lifted his leg and just like three squirts came out and he expected a giant</p>



<p class="wp-block-paragraph">treat for it.</p>



<p class="wp-block-paragraph">I&#8217;m not doing it.</p>



<p class="wp-block-paragraph">You&#8217;re not getting that treat.</p>



<p class="wp-block-paragraph">I expect a big pee pee if you want a treat.</p>



<p class="wp-block-paragraph">You dog?</p>



<p class="wp-block-paragraph">Dang little dog.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">So, here we are still dividing.</p>



<p class="wp-block-paragraph">here we are still dividing. I got the remainder. So then we just need to take, you know, the</p>



<p class="wp-block-paragraph">quotient result, you know, what is the result of actually dividing, just carry it over to</p>



<p class="wp-block-paragraph">the next line. I&#8217;m going to do some spaces to make it look all even and continue to divide.</p>



<p class="wp-block-paragraph">So divided by 16 equals something. Don&#8217;t forget that if you have the modulo operator over there,</p>



<p class="wp-block-paragraph">you got to take it out, go back to division. It&#8217;s going to be 31984 remainder something.</p>



<p class="wp-block-paragraph">what&#8217;s the remainder i&#8217;m just going to get the modulo i don&#8217;t want i don&#8217;t want to recall what</p>



<p class="wp-block-paragraph">0.8125 is i&#8217;m sure some of you out there can already do that but it is 13 remainder 13.</p>



<p class="wp-block-paragraph">um so i&#8217;m gonna go 319 divided by 16 31984 divided by 16 so it&#8217;s going to be 1 999 okay so carry that</p>



<p class="wp-block-paragraph">over real fast though divided by 16 equals 1 9 9 remainder something there&#8217;s no decimal point at the</p>



<p class="wp-block-paragraph">There&#8217;s no decimal point at the end of that so I can just assume the remainder is going to be zero.</p>



<p class="wp-block-paragraph">If you want to double check to be sure, which is a good idea, use the modulo operator.</p>



<p class="wp-block-paragraph">If your calculator doesn&#8217;t have modulo, find another calculator or jump into Python or something.</p>



<p class="wp-block-paragraph">So I&#8217;m going to carry over 199 to the next line there.</p>



<p class="wp-block-paragraph">1, 2, 4, remainder, whatever modulo says, 15.</p>



<p class="wp-block-paragraph">That&#8217;s pretty cool.</p>



<p class="wp-block-paragraph">All right, then I&#8217;m gonna carry it over,</p>



<p class="wp-block-paragraph">just 1, 2, 4, divided by 16 again.</p>



<p class="wp-block-paragraph">If you were hoping I&#8217;d be able to do it in my head by now,</p>



<p class="wp-block-paragraph">you were wrong.</p>



<p class="wp-block-paragraph">1, 2, 4, divided by 16, it&#8217;s gonna be 7.75,</p>



<p class="wp-block-paragraph">so just like seven, remainder something.</p>



<p class="wp-block-paragraph">What did I say last time for the 3 4ths?</p>



<p class="wp-block-paragraph">Was that 12?</p>



<p class="wp-block-paragraph">whoops, I can&#8217;t remember anymore.</p>



<p class="wp-block-paragraph">12, yeah, okay, so remainder 12.</p>



<p class="wp-block-paragraph">And then we&#8217;ll carry it over and we&#8217;ll say 7 divided by 16.</p>



<p class="wp-block-paragraph">So we know that, you know, 16 doesn&#8217;t really fit into 7 at all.</p>



<p class="wp-block-paragraph">So it&#8217;s going to be 0 remainder, whatever the number is.</p>



<p class="wp-block-paragraph">Let&#8217;s punch it here just to double check.</p>



<p class="wp-block-paragraph">We&#8217;ll say 7 divided by 16.</p>



<p class="wp-block-paragraph">You can see that it&#8217;s 0.</p>



<p class="wp-block-paragraph">And then the remainder is going to be 7, just, you know, what the original number was.</p>



<p class="wp-block-paragraph">number was. So now at this point when the actual you know carry down quotient is</p>



<p class="wp-block-paragraph">going to be zero then we just have zero divided by 16 equals just zero remainder</p>



<p class="wp-block-paragraph">zero and it&#8217;ll just continue like this forever and ever and ever and ever and</p>



<p class="wp-block-paragraph">ever. So this is how you know you&#8217;re done. Another thing that I mentioned in</p>



<p class="wp-block-paragraph">other videos is how do we actually know where the zeros belong? I mean if you</p>



<p class="wp-block-paragraph">read this intuitively from the top to the bottom you might think that you know</p>



<p class="wp-block-paragraph">you know the top number is going to be like the first digit but it&#8217;s actually</p>



<p class="wp-block-paragraph">backwards it goes from the bottom up the reason you can know that is again based</p>



<p class="wp-block-paragraph">on my other videos if we just type a random decimal number here if I add</p>



<p class="wp-block-paragraph">zeros to the right side I&#8217;m actually changing the value of the number I&#8217;m</p>



<p class="wp-block-paragraph">making it bigger but if I add zeros to the left side I&#8217;m not changing the value</p>



<p class="wp-block-paragraph">at all so that means those zeros here which could go on for infinity based on</p>



<p class="wp-block-paragraph">how much tenacity you have they should be on the left side because you don&#8217;t</p>



<p class="wp-block-paragraph">side because you don&#8217;t want any amount of these zeros to change the value of your number because</p>



<p class="wp-block-paragraph">they you know it&#8217;s an arbitrary number of zeros based on how how fast you get tired of doing zeros</p>



<p class="wp-block-paragraph">so that means if i go from top to bottom i have to reverse it if i go from bottom to top it&#8217;s</p>



<p class="wp-block-paragraph">already going to be in the right order or sorry if i if i correlate or if i map bottom to top to mean</p>



<p class="wp-block-paragraph">left to right then it&#8217;s fine already if i map top to bottom for left to right then i&#8217;ll have to</p>



<p class="wp-block-paragraph">For left to right, then I&#8217;ll have to reverse it when I&#8217;m done.</p>



<p class="wp-block-paragraph">So I&#8217;ll do it both ways just to show you.</p>



<p class="wp-block-paragraph">But there&#8217;s one more step we need to do because in hexadecimal,</p>



<p class="wp-block-paragraph">we have more characters than decimal.</p>



<p class="wp-block-paragraph">We have to translate what does this 12 and 13 and these other numbers mean.</p>



<p class="wp-block-paragraph">Luckily, we had some of them in there.</p>



<p class="wp-block-paragraph">It could have been too easy.</p>



<p class="wp-block-paragraph">So remember in hex, we have 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.</p>



<p class="wp-block-paragraph">And then we have A, B, C, D, E, right?</p>



<p class="wp-block-paragraph">So we know that the value of 0 is 0 and 1 is 1 and 2 and 2 and so forth, right?</p>



<p class="wp-block-paragraph">Like 9 is 9.</p>



<p class="wp-block-paragraph">But what&#8217;s the value of A?</p>



<p class="wp-block-paragraph">For each increasing digit, the value just goes up by 1.</p>



<p class="wp-block-paragraph">So that means that A is worth 10.</p>



<p class="wp-block-paragraph">I&#8217;m going to write this vertically just so that you understand that this means the strength</p>



<p class="wp-block-paragraph">of the A is 10.</p>



<p class="wp-block-paragraph">And then the strength of the B is going to be 11 because it just increases by 1.</p>



<p class="wp-block-paragraph">The strength of the C is 12.</p>



<p class="wp-block-paragraph">The strength of the D is 13.</p>



<p class="wp-block-paragraph">Oops, I forgot the F.</p>



<p class="wp-block-paragraph">Oops, I forgot the F. Hit F in the chat if you forgot the F too.</p>



<p class="wp-block-paragraph">So the strength of the E is 14. The strength of the F is 15.</p>



<p class="wp-block-paragraph">And then we&#8217;re done. And remember, there&#8217;s 16 digits total.</p>



<p class="wp-block-paragraph">So the highest value is 15 because it includes the zero.</p>



<p class="wp-block-paragraph">So, you know, 16 total possible values you could represent, but the highest value, 15.</p>



<p class="wp-block-paragraph">So that means every time we see a 12 here,</p>



<p class="wp-block-paragraph">say that that&#8217;s really a C and every time we see actually let me let me put</p>



<p class="wp-block-paragraph">the other C in there real fast every time we see a 13 that means it&#8217;s a D</p>



<p class="wp-block-paragraph">every time we see a zero zero through nine it just it means the original</p>



<p class="wp-block-paragraph">number oh wow we only had two digits that are gonna mean the original number</p>



<p class="wp-block-paragraph">so mark my words you know the 15 is gonna be an F every time you see zero</p>



<p class="wp-block-paragraph">one two three four five six seven eight nine it maps to the same number so seven</p>



<p class="wp-block-paragraph">maps to seven it&#8217;s totally fine the only time it maps to a letter is of course when you exceed nine</p>



<p class="wp-block-paragraph">so 10 and above are going to map to letters so now i have these mappings i just need to sort of scan</p>



<p class="wp-block-paragraph">uh my my work to come up with the correct hexadecimal number so i&#8217;ll start from top to</p>



<p class="wp-block-paragraph">bottom because it&#8217;s a little bit harder that way and it&#8217;ll be more brain practice i&#8217;m going to go</p>



<p class="wp-block-paragraph">and then you know as many zeros as you decided to calculate and hopefully this</p>



<p class="wp-block-paragraph">reminds you oh no I&#8217;m increasing the value by adding the zeros that means I</p>



<p class="wp-block-paragraph">have to reverse everything so I&#8217;m gonna get rid of these zeros though and I&#8217;m</p>



<p class="wp-block-paragraph">gonna reverse it 7cf0dc okay great now let&#8217;s double check because it&#8217;s always</p>



<p class="wp-block-paragraph">a great idea to check your work in different ways with different methods to</p>



<p class="wp-block-paragraph">decrease the possibility that you&#8217;re accidentally wrong so now I&#8217;m gonna go</p>



<p class="wp-block-paragraph">So now I&#8217;m going to go from bottom to top and see if it&#8217;s the same thing.</p>



<p class="wp-block-paragraph">7 C F 0 D C. Does it match? Yes.</p>



<p class="wp-block-paragraph">So now I&#8217;m pretty confident that I have the right answer.</p>



<p class="wp-block-paragraph">Let me punch this up in my personal calculator real fast.</p>



<p class="wp-block-paragraph">I&#8217;m going to do just to double check the work before we cut the camera,</p>



<p class="wp-block-paragraph">because if I&#8217;m wrong, I want to be able to correct myself right away.</p>



<p class="wp-block-paragraph">Instead of coming back with another video later,</p>



<p class="wp-block-paragraph">which sometimes I guess I&#8217;ll have to do.</p>



<p class="wp-block-paragraph">f0 dc is the correct answer all right so we now have converted our first number from decimal to</p>



<p class="wp-block-paragraph">hexadecimal nice and by the way if you didn&#8217;t already know this you&#8217;re supposed to put a</p>



<p class="wp-block-paragraph">prefix in front of hexadecimal numbers not necessarily in every program that asks for</p>



<p class="wp-block-paragraph">hex input some of them are not programmed that way but in general when you expect someone to</p>



<p class="wp-block-paragraph">read your numbers if it&#8217;s hex you want to put ox in front of it because you don&#8217;t want them to</p>



<p class="wp-block-paragraph">confuse, let&#8217;s say we have this number and this number and this number. All three of those could</p>



<p class="wp-block-paragraph">be a different number depending on whether they&#8217;re binary or decimal or hex. But if you put the</p>



<p class="wp-block-paragraph">symbols in front, this is binary, this is hex, then now the reader knows that these are three</p>



<p class="wp-block-paragraph">different numbers and they can infer what the numbers mean. Okay, so let me, let&#8217;s just do like</p>



<p class="wp-block-paragraph">another number. We&#8217;ll make it a little bit smaller so it&#8217;s easier. We&#8217;ll say decimal and we&#8217;ll go two,</p>



<p class="wp-block-paragraph">and we&#8217;ll go 2 2 3.</p>



<p class="wp-block-paragraph">So it&#8217;s faster.</p>



<p class="wp-block-paragraph">So we start off with 2 2 3,</p>



<p class="wp-block-paragraph">we divide it by 16,</p>



<p class="wp-block-paragraph">and that&#8217;s going to be something.</p>



<p class="wp-block-paragraph">So 2 2 3 divided by 16</p>



<p class="wp-block-paragraph">is going to be 13 remainder something.</p>



<p class="wp-block-paragraph">I&#8217;m going to do the modulo operator.</p>



<p class="wp-block-paragraph">And by the way,</p>



<p class="wp-block-paragraph">if you don&#8217;t have a modulo operator</p>



<p class="wp-block-paragraph">and you can&#8217;t figure out a better way to do this,</p>



<p class="wp-block-paragraph">a good trick is to just say,</p>



<p class="wp-block-paragraph">let&#8217;s take 13,</p>



<p class="wp-block-paragraph">because that was the answer, right?</p>



<p class="wp-block-paragraph">13 point something.</p>



<p class="wp-block-paragraph">We&#8217;ll take 13 and multiply that by 16 again,</p>



<p class="wp-block-paragraph">that by 16 again so it goes higher then take the difference between that and the original number</p>



<p class="wp-block-paragraph">so we can say 223 minus uh the number multiplied back up and it&#8217;ll tell us that our remainder is 15.</p>



<p class="wp-block-paragraph">let&#8217;s see was that actually the remainder let me just double check here oh gosh what am i doing</p>



<p class="wp-block-paragraph">223 modulo 16 15 yeah there it is if you&#8217;re lazy like me you could also do something like this i</p>



<p class="wp-block-paragraph">and I don&#8217;t have a modulo.</p>



<p class="wp-block-paragraph">I&#8217;ll do 13 times 16 and it&#8217;s 208.</p>



<p class="wp-block-paragraph">And then I&#8217;ll just subtract the original number</p>



<p class="wp-block-paragraph">and then we get negative 15,</p>



<p class="wp-block-paragraph">but then I know it&#8217;s not negative, I know it&#8217;s 15.</p>



<p class="wp-block-paragraph">So it&#8217;s just like, it makes you a little bit faster</p>



<p class="wp-block-paragraph">in the calculator.</p>



<p class="wp-block-paragraph">So this number I think was too small</p>



<p class="wp-block-paragraph">because we just do 13 and then divide that by 16.</p>



<p class="wp-block-paragraph">Obviously the answer is gonna be zero remainder 13.</p>



<p class="wp-block-paragraph">And we just have a two digit hexadecimal number.</p>



<p class="wp-block-paragraph">digit hexadecimal number. Let&#8217;s do that real fast. What is 15 going to be? It&#8217;s A and no, no,</p>



<p class="wp-block-paragraph">no, not A. Sorry. That&#8217;s F. Subtract two from that. D E F. So it&#8217;s going to be D, I think.</p>



<p class="wp-block-paragraph">So then if we go from bottom to top, it&#8217;s going to be O X D F. Let me double check that I&#8217;m</p>



<p class="wp-block-paragraph">telling you the right thing. 223 D F. Okay. So we got it right. Let&#8217;s do something just like a</p>



<p class="wp-block-paragraph">not as difficult as the first one so I&#8217;ll try four digits maybe two two two two</p>



<p class="wp-block-paragraph">how about that four digital four digital digits how about that we&#8217;ll do</p>



<p class="wp-block-paragraph">two eight one six divided by 13 equals something two eight one six divided by</p>



<p class="wp-block-paragraph">16 that&#8217;s 176 remainder something there&#8217;s no decimal point so I can just</p>



<p class="wp-block-paragraph">16 is 176 divided by 16 is 11.</p>



<p class="wp-block-paragraph">Another zero remainder.</p>



<p class="wp-block-paragraph">Getting kind of boring though, isn&#8217;t it?</p>



<p class="wp-block-paragraph">Remainder zero.</p>



<p class="wp-block-paragraph">And then we&#8217;ll do 11 divided by 16.</p>



<p class="wp-block-paragraph">That&#8217;s going to be zero remainder 11.</p>



<p class="wp-block-paragraph">That&#8217;s too easy.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">So what is zero?</p>



<p class="wp-block-paragraph">Zero is zero.</p>



<p class="wp-block-paragraph">You&#8217;re welcome.</p>



<p class="wp-block-paragraph">And then what is zero?</p>



<p class="wp-block-paragraph">It&#8217;s also zero.</p>



<p class="wp-block-paragraph">0, it&#8217;s also 0 and then what is 11? That&#8217;s B.</p>



<p class="wp-block-paragraph">So we should have a number now of 0xB00 if we&#8217;re going from the bottom to the top.</p>



<p class="wp-block-paragraph">If you go from the top to the bottom of course it&#8217;ll be 00B and then you reverse it B00</p>



<p class="wp-block-paragraph">but I just wanted to skip that step for now.</p>



<p class="wp-block-paragraph">Let me punch this up into my personal calculator to make sure I don&#8217;t need to make a correction.</p>



<p class="wp-block-paragraph">B00, there we go.</p>



<p class="wp-block-paragraph">Also, you know, here&#8217;s another thing to keep in mind.</p>



<p class="wp-block-paragraph">it&#8217;s to read you know sets of bytes which typically go in patterns of one byte or two</p>



<p class="wp-block-paragraph">bytes or four bytes or eight bytes or whatever so the cool thing about hex is one character</p>



<p class="wp-block-paragraph">can represent a number from zero uh to 15 or 16 combinations and if you think about that in binary</p>



<p class="wp-block-paragraph">that&#8217;s four bits right it&#8217;s like one two three four one two four eight multiply eight by two</p>



<p class="wp-block-paragraph">16 subtract 1 is 15.</p>



<p class="wp-block-paragraph">So you can go from 0 to 15.</p>



<p class="wp-block-paragraph">So that means for every character in hex,</p>



<p class="wp-block-paragraph">you get four characters of binary.</p>



<p class="wp-block-paragraph">So it&#8217;s like a huge savings, right?</p>



<p class="wp-block-paragraph">But the point is, if you wanted to represent one byte,</p>



<p class="wp-block-paragraph">that&#8217;s not going to be four bits.</p>



<p class="wp-block-paragraph">That&#8217;s going to be, you know,</p>



<p class="wp-block-paragraph">four bits followed by four bits for a total of eight bits.</p>



<p class="wp-block-paragraph">Even if there are zeros in the beginning,</p>



<p class="wp-block-paragraph">in binary, if you&#8217;re representing a byte,</p>



<p class="wp-block-paragraph">But in binary, if you&#8217;re representing a byte, you typically want to pad the zeros to the</p>



<p class="wp-block-paragraph">left so that it looks like it&#8217;s aligned to nice blocks of eight or 16 or 32 or 64 in</p>



<p class="wp-block-paragraph">terms of bits.</p>



<p class="wp-block-paragraph">So we should do the same thing with hex.</p>



<p class="wp-block-paragraph">We should always have two hex digits together.</p>



<p class="wp-block-paragraph">We should try not to have like an odd number of hex digits.</p>



<p class="wp-block-paragraph">And if you want to get more strict than that and say like, oh, only, you know, two or four</p>



<p class="wp-block-paragraph">eight you can do that but i just will say pad it with a zero to the left remember when you pad a</p>



<p class="wp-block-paragraph">number with zeros to the left it doesn&#8217;t change the value like if i just put a bunch of zeros in</p>



<p class="wp-block-paragraph">front of this decimal number it wouldn&#8217;t change the value so we can do that with hex and it looks</p>



<p class="wp-block-paragraph">nicer and neater and people can quickly see okay so there&#8217;s like a byte right there it&#8217;s ob</p>



<p class="wp-block-paragraph">they can imagine oh that byte is probably um 11. so there&#8217;s like a like an 11 byte it&#8217;s like got</p>



<p class="wp-block-paragraph">a sequence of zeros and ones and then there&#8217;s another byte right after it which is smaller</p>



<p class="wp-block-paragraph">which is smaller, which just has zeros.</p>



<p class="wp-block-paragraph">So it just helps the reader visualize what&#8217;s going on.</p>



<p class="wp-block-paragraph">Okay, I&#8217;m going to cut the video here.</p>



<p class="wp-block-paragraph">I hope you enjoyed this video.</p>



<p class="wp-block-paragraph">I hope you learned a little bit of stuff and had a little bit of fun.</p>



<p class="wp-block-paragraph">I&#8217;ll see you in the next video.</p>



<p class="wp-block-paragraph">Hey, everybody.</p>



<p class="wp-block-paragraph">Thanks for watching this video again from the bottom of my heart.</p>



<p class="wp-block-paragraph">I really appreciate it.</p>



<p class="wp-block-paragraph">I do hope you did learn something and have some fun.</p>



<p class="wp-block-paragraph">If you could do me a please, a small little favor,</p>



<p class="wp-block-paragraph">please a small little favor could you please subscribe and follow this channel</p>



<p class="wp-block-paragraph">or these videos or whatever it is you do on the current social media website</p>



<p class="wp-block-paragraph">that you&#8217;re looking at right now it would really mean the world to me and</p>



<p class="wp-block-paragraph">it&#8217;ll help make more videos and grow this community so we&#8217;ll be able to do</p>



<p class="wp-block-paragraph">more videos longer videos better videos or just I&#8217;ll be able to keep making</p>



<p class="wp-block-paragraph">videos in general so please do do me a kindness and and subscribe you know</p>



<p class="wp-block-paragraph">sometimes I&#8217;m sleeping in the middle of the night and I just wake up because I</p>



<p class="wp-block-paragraph">And I just wake up because I know somebody subscribed or followed.</p>



<p class="wp-block-paragraph">It just wakes me up and I get filled with joy.</p>



<p class="wp-block-paragraph">That&#8217;s exactly what happens every single time.</p>



<p class="wp-block-paragraph">So you could do it as a nice favor to me or you could troll me if you want to just wake me up in the middle of the night.</p>



<p class="wp-block-paragraph">Just subscribe and then I&#8217;ll just wake up.</p>



<p class="wp-block-paragraph">I promise that&#8217;s what will happen.</p>



<p class="wp-block-paragraph">Also, if you look at the middle of the screen right now, you should see a QR code,</p>



<p class="wp-block-paragraph">which you can scan in order to go to the website, which I think is also named somewhere at the bottom of this video.</p>



<p class="wp-block-paragraph">where you can just kind of like see all the videos I published and the services</p>



<p class="wp-block-paragraph">and tutorials and things that I offer and all that good stuff and if you have</p>



<p class="wp-block-paragraph">a suggestion for clarifications or errata or just future videos that you</p>



<p class="wp-block-paragraph">want to see please leave a comment or if you just want to say hey what&#8217;s up</p>



<p class="wp-block-paragraph">what&#8217;s going on you know just send me a comment whatever I also wake up for</p>



<p class="wp-block-paragraph">those in the middle of the night I get I wake up in a cold sweat I&#8217;m like this</p>



<p class="wp-block-paragraph">really it really mean the world to me I would really appreciate it so again thank you so much</p>



<p class="wp-block-paragraph">for watching this video and enjoy the cool music as as I fade into the darkness which is coming for</p>



<p class="wp-block-paragraph">us all</p>



<p class="wp-block-paragraph">Thank you.</p>
<p>The post <a href="https://www.NeuralLantern.com/how-to-convert-decimal-to-hexadecimal-fun-easy-guide-for-beginners/">How to Convert Decimal to Hexadecimal: Fun &amp; Easy Guide for Beginners</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/how-to-convert-decimal-to-hexadecimal-fun-easy-guide-for-beginners/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
