<?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>tech tutorials Archives - NeuralLantern.com</title>
	<atom:link href="https://www.NeuralLantern.com/tag/tech-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.NeuralLantern.com/tag/tech-tutorials/</link>
	<description></description>
	<lastBuildDate>Sun, 31 Aug 2025 21:06:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>

<image>
	<url>https://www.NeuralLantern.com/wp-content/uploads/2025/04/cropped-2025-04-04-Lantern-03-32x32.png</url>
	<title>tech tutorials Archives - NeuralLantern.com</title>
	<link>https://www.NeuralLantern.com/tag/tech-tutorials/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Headless Raspberry Pi Setup: SSH, Static IP, and WiFi Dongle Guide</title>
		<link>https://www.NeuralLantern.com/headless-raspberry-pi-setup-ssh-static-ip-and-wifi-dongle-guide/</link>
					<comments>https://www.NeuralLantern.com/headless-raspberry-pi-setup-ssh-static-ip-and-wifi-dongle-guide/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Sun, 31 Aug 2025 21:06:38 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[disable auto-mount]]></category>
		<category><![CDATA[headless setup]]></category>
		<category><![CDATA[Linux setup]]></category>
		<category><![CDATA[Network Manager Pi]]></category>
		<category><![CDATA[Pi network configuration]]></category>
		<category><![CDATA[Raspberry Pi projects]]></category>
		<category><![CDATA[Raspberry Pi tutorial]]></category>
		<category><![CDATA[SD card setup]]></category>
		<category><![CDATA[SSH configuration]]></category>
		<category><![CDATA[SSH keys]]></category>
		<category><![CDATA[static IP Raspberry Pi]]></category>
		<category><![CDATA[tech tutorials]]></category>
		<category><![CDATA[uDiscs2 service]]></category>
		<category><![CDATA[WiFi dongle setup]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=217</guid>

					<description><![CDATA[<p>Headless Raspberry Pi setup guide: Disable auto-mount, configure SSH, set static IP, and prep WiFi dongle. Perfect for beginners!</p>
<p>The post <a href="https://www.NeuralLantern.com/headless-raspberry-pi-setup-ssh-static-ip-and-wifi-dongle-guide/">Headless Raspberry Pi Setup: SSH, Static IP, and WiFi Dongle 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="Headless Raspberry Pi Setup: SSH, Static IP, and WiFi Dongle Guide" width="1380" height="776" src="https://www.youtube.com/embed/1Q4AwUfFjE0?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">In this step-by-step guide, I walk you through setting up a Raspberry Pi headless—no monitor needed! Learn how to tackle SD card issues, disable the auto-mount service (uDiscs2) to avoid corruption, and configure SSH for secure remote access. I’ll also show you how to set a static IP using Network Manager, prep the Pi for a WiFi dongle, and install the &#8220;screen&#8221; utility to save your work. Whether you&#8217;re a beginner or a seasoned Raspberry Pi enthusiast, this tutorial covers practical tips to get your Pi online and ready for projects. Hit subscribe, check out my website via the QR code, and join the community for more tech tutorials!</p>



<p class="wp-block-paragraph">Introduction and SD Card Issue 00:00:00<br>Disabling Auto-Mount Service 00:00:41<br>Mounting SD Card Partitions 00:01:24<br>Configuring SSH on Boot Partition 00:02:15<br>Setting Static IP in cmdline.txt 00:02:48<br>Configuring Root Partition and SSH Keys 00:03:44<br>Setting File Permissions for SSH 00:06:04<br>Unmounting Partitions and Booting Pi 00:07:31<br>First SSH Login to Pi 00:09:14<br>Configuring Network Manager for Static IP 00:09:51<br>Setting Hostname and System Update 00:17:01<br>Installing Screen Utility 00:18:24<br>WiFi Dongle Installation Overview 00:19:11<br>Video Conclusion and Subscription Request 00:21: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">Okay, I&#8217;m back.</p>



<p class="wp-block-paragraph">I have finished writing my SD card.</p>



<p class="wp-block-paragraph">I had a problem when the scene was paused.</p>



<p class="wp-block-paragraph">Basically, those annoying pop-ups came back</p>



<p class="wp-block-paragraph">where I was like in the middle of writing to the card</p>



<p class="wp-block-paragraph">and the auto-mounting service suddenly decided</p>



<p class="wp-block-paragraph">that there was a file system there</p>



<p class="wp-block-paragraph">and it auto-mounted it and then it, you know,</p>



<p class="wp-block-paragraph">put it up onto the screen.</p>



<p class="wp-block-paragraph">And I think it corrupted the card.</p>



<p class="wp-block-paragraph">So I ended up having to rewrite the card from scratch.</p>



<p class="wp-block-paragraph">So let me just show you real fast within this video how to disable that service.</p>



<p class="wp-block-paragraph">It&#8217;s sudo system control.</p>



<p class="wp-block-paragraph">Start with status and then type uDiscs2.service.</p>



<p class="wp-block-paragraph">For me, I already disabled this to get it working.</p>



<p class="wp-block-paragraph">So what happened?</p>



<p class="wp-block-paragraph">No, I already stopped it.</p>



<p class="wp-block-paragraph">I already stopped it. Basically you just want to do stop to temporarily stop it.</p>



<p class="wp-block-paragraph">And then if we go back to status, it&#8217;s still it&#8217;s still enabled. That just means that it&#8217;ll come back on for the next boot.</p>



<p class="wp-block-paragraph">Okay, so if your SD card corrupted or anything like that, you probably want to start over after you disable U-Discs.</p>



<p class="wp-block-paragraph">And then if we use the Partead partition editor again, we can see that SDB is still there.</p>



<p class="wp-block-paragraph">So that&#8217;s still considered the name of our card. So now that</p>



<p class="wp-block-paragraph">now that the auto-mounter is not doing anything for us we need to mount the card ourselves so</p>



<p class="wp-block-paragraph">i&#8217;m going to go into cd actually just to double check media and then mike and then notice how</p>



<p class="wp-block-paragraph">it&#8217;s not mounted so i&#8217;m going to go into cd i&#8217;m going to go into the temporary directory i&#8217;m going</p>



<p class="wp-block-paragraph">to go into that pi directory i think i probably made that earlier on camera for you and then i</p>



<p class="wp-block-paragraph">made two other directories one called boot and root so i&#8217;m just going to mount the uh oops dev</p>



<p class="wp-block-paragraph">partition one, which is usually the boot partition to the boot folder.</p>



<p class="wp-block-paragraph">Do my password and then do the same thing for partition two,</p>



<p class="wp-block-paragraph">which is usually the file system root folder.</p>



<p class="wp-block-paragraph">So first thing we need to do is go into the boot partition.</p>



<p class="wp-block-paragraph">So this is what the pie will see when it boots up.</p>



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



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



<p class="wp-block-paragraph">So what we need to do is make an empty file called SSH in the boot folder</p>



<p class="wp-block-paragraph">SSH in the boot folder or the boot partition because we want to tell the</p>



<p class="wp-block-paragraph">pi that its SSH server should be enabled by default so I&#8217;m gonna go sudo touch</p>



<p class="wp-block-paragraph">SSH if I list it again notice how there&#8217;s just an SSH folder and that&#8217;s it</p>



<p class="wp-block-paragraph">there&#8217;s nothing inside of it the pi just knows the other thing we have to do is</p>



<p class="wp-block-paragraph">modify the startup command line here I already did this actually when I jumped</p>



<p class="wp-block-paragraph">Basically you want to do, you want to edit the cmdline.txt file, and then you want to</p>



<p class="wp-block-paragraph">find the argument that says root wait.</p>



<p class="wp-block-paragraph">And right after that, you want to stick the IP address that you want your PI to start</p>



<p class="wp-block-paragraph">up as or start up with.</p>



<p class="wp-block-paragraph">So it&#8217;s IP equals and then the address.</p>



<p class="wp-block-paragraph">And then again, like we said before in this video, you need to know what is the subnet</p>



<p class="wp-block-paragraph">of your existing network and you need to choose an IP address for your PI.</p>



<p class="wp-block-paragraph">Let&#8217;s see if I actually matched what I was supposed to do.</p>



<p class="wp-block-paragraph">to do oh gosh for the pie yeah 5.1 okay so I&#8217;ll move that over to the first thing there yeah so</p>



<p class="wp-block-paragraph">just 123 is what we wanted so that&#8217;s why that is there so I didn&#8217;t actually modify this but you&#8217;ll</p>



<p class="wp-block-paragraph">have to modify yours I didn&#8217;t because I have to because I already did it and then we&#8217;ll go into</p>



<p class="wp-block-paragraph">the into the root partition so we&#8217;ll go into the root partition and notice how it&#8217;s got like all</p>



<p class="wp-block-paragraph">And notice how it&#8217;s got like all the files and folders that you&#8217;re used to seeing with Linux.</p>



<p class="wp-block-paragraph">So that means, you know, this is the temporary amount slash pi slash sorry, slash temp slash pi slash root.</p>



<p class="wp-block-paragraph">Inside of it, there&#8217;s a subfolder called home.</p>



<p class="wp-block-paragraph">And then there&#8217;s the home directory for the root account under the root folder.</p>



<p class="wp-block-paragraph">You could modify that instead if you want to.</p>



<p class="wp-block-paragraph">I&#8217;m just going to go into the home account.</p>



<p class="wp-block-paragraph">Sorry, the home folder.</p>



<p class="wp-block-paragraph">And then go into the pi accounts home folder.</p>



<p class="wp-block-paragraph">because that&#8217;s what your PI account is going to start off with.</p>



<p class="wp-block-paragraph">Again, notice how we&#8217;re in like a deeper subdirectory.</p>



<p class="wp-block-paragraph">So from the PI&#8217;s perspective, we&#8217;re really only in slash home slash PI.</p>



<p class="wp-block-paragraph">I already actually did this.</p>



<p class="wp-block-paragraph">When I jumped away, I wanted to make an extra video for SSH or sorry, for first boot stuff.</p>



<p class="wp-block-paragraph">So I made the SSH folder.</p>



<p class="wp-block-paragraph">What you need to do is make directory dot SSH so that you have a SSH folder in this PI folder.</p>



<p class="wp-block-paragraph">in this pi folder then once you have that go inside of it and you want to make a file called</p>



<p class="wp-block-paragraph">authorized keys so i did nano authorized keys like that and then i edited it and i just put the public</p>



<p class="wp-block-paragraph">key of of the machine that i&#8217;m currently on right now this is just a virtual machine so i guess it&#8217;s</p>



<p class="wp-block-paragraph">fine if i share but um what you want to do is generate your own ssh key if you don&#8217;t know how</p>



<p class="wp-block-paragraph">but uh you can print out your ssh key with pretty much cat squiggly line or tilde swinton and then</p>



<p class="wp-block-paragraph">like a slash and then dot ssh and then id and then dot pub so that was my public key that&#8217;s how i</p>



<p class="wp-block-paragraph">found it and then um you know if you don&#8217;t have a key you can go ahead and do this on your host</p>



<p class="wp-block-paragraph">ssh keygen forgot if i put this into the last segment but you type that and hit enter a bunch</p>



<p class="wp-block-paragraph">of times and when you&#8217;re done hitting enter enough you&#8217;ll have your public key there somewhere</p>



<p class="wp-block-paragraph">your public key there somewhere. You probably want to eventually learn how to put a password on your</p>



<p class="wp-block-paragraph">key but it&#8217;s fine for now. So we created the authorized keys file that basically tells</p>



<p class="wp-block-paragraph">the operating system that I would like that particular key to be able to authenticate as</p>



<p class="wp-block-paragraph">that user and since the pi is a god user or like a root user it&#8217;s pretty nice. The other thing we</p>



<p class="wp-block-paragraph">have to do is make sure that we set permissions correctly. If the permissions aren&#8217;t correct on</p>



<p class="wp-block-paragraph">your SSH will not authenticate so so I&#8217;m gonna make sure that this is set to</p>



<p class="wp-block-paragraph">the right permissions for me I usually do 7 0 0 on the authorized keys file I</p>



<p class="wp-block-paragraph">can&#8217;t remember if 6 0 is fine so I just put 7 that basically means that your</p>



<p class="wp-block-paragraph">current user which will eventually be the PI user has full permission to look</p>



<p class="wp-block-paragraph">at that file but nobody else does so you can tell by the way because on the left</p>



<p class="wp-block-paragraph">execute and then a bunch of empty dashes meaning nobody else has permissions so we got to do the</p>



<p class="wp-block-paragraph">same thing for the ssh folder um so i&#8217;m going to go uh you know chamad if this doesn&#8217;t work by</p>



<p class="wp-block-paragraph">itself you might want to say pseudo chamad but i think it&#8217;ll work because the username that it</p>



<p class="wp-block-paragraph">thinks is on that folder is actually the same as my current user which is great so i&#8217;m going to go</p>



<p class="wp-block-paragraph">and not the six on there, meaning the current user should be able to actually like read</p>



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



<p class="wp-block-paragraph">If it&#8217;s six, they won&#8217;t even be able to read the directory.</p>



<p class="wp-block-paragraph">So we do that just to make sure that the dot SSH file and the authorized keys file have</p>



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



<p class="wp-block-paragraph">And then I think we&#8217;re ready to log into the pie for the first time.</p>



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



<p class="wp-block-paragraph">By the way, if you were inside of root for some reason, I do this sometimes, sudo su</p>



<p class="wp-block-paragraph">and let&#8217;s, oops, let&#8217;s go up and then let&#8217;s unmount,</p>



<p class="wp-block-paragraph">whoops, let&#8217;s unmount this boot partition</p>



<p class="wp-block-paragraph">or the root partition.</p>



<p class="wp-block-paragraph">You may get an error message saying</p>



<p class="wp-block-paragraph">that the partition is busy</p>



<p class="wp-block-paragraph">because what you didn&#8217;t realize was the account</p>



<p class="wp-block-paragraph">that you just came from is still considered</p>



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



<p class="wp-block-paragraph">So you gotta make sure that there are no terminals</p>



<p class="wp-block-paragraph">or accounts or anything actually using that directory</p>



<p class="wp-block-paragraph">before you try to unmount it.</p>



<p class="wp-block-paragraph">So I&#8217;m gonna go sudo, oh, I gotta go up one level.</p>



<p class="wp-block-paragraph">sudo unmount boot umount and then umount root uh if there are no error messages then that means</p>



<p class="wp-block-paragraph">the sd card is ready to be put into the actual pi before i do that though i&#8217;m going to start</p>



<p class="wp-block-paragraph">pinging the pi because it&#8217;s fun to see the pings come online i&#8217;m going to go 192.168.123</p>



<p class="wp-block-paragraph">because that&#8217;s what we chose for the pi already in my other video that i just made i typed like a</p>



<p class="wp-block-paragraph">here forever on camera. I&#8217;m not going to edit it out. So I&#8217;m going to take the SD card out</p>



<p class="wp-block-paragraph">and you can&#8217;t really see my Pi because it&#8217;s plugged into an ethernet cable, but I&#8217;m plugging</p>



<p class="wp-block-paragraph">an ethernet cable into the Pi. I&#8217;m putting the SD card into the Pi and then I&#8217;m going to plug power</p>



<p class="wp-block-paragraph">into the Pi. Totally headless. Don&#8217;t have to worry about very much at all. So it&#8217;s got power now.</p>



<p class="wp-block-paragraph">and pretty soon now it should start responding to pings.</p>



<p class="wp-block-paragraph">Soon as it comes up,</p>



<p class="wp-block-paragraph">I&#8217;m gonna log in and start finalizing the ethernet setup.</p>



<p class="wp-block-paragraph">There it goes.</p>



<p class="wp-block-paragraph">Might take like a few more seconds after this</p>



<p class="wp-block-paragraph">before the SSH server actually comes up,</p>



<p class="wp-block-paragraph">but I&#8217;m gonna give it a try right now and see what happens.</p>



<p class="wp-block-paragraph">And remember to do PI at,</p>



<p class="wp-block-paragraph">because we did not make a different user.</p>



<p class="wp-block-paragraph">When you see this message right here,</p>



<p class="wp-block-paragraph">that the remote is not recognized that&#8217;s a security feature so I&#8217;m gonna put yes</p>



<p class="wp-block-paragraph">and now we&#8217;re in the Pi so what I was supposed to do is a network manager connection show at least</p>



<p class="wp-block-paragraph">this version of the Pi the latest version uses network manager if you&#8217;re watching this video</p>



<p class="wp-block-paragraph">from the distant future you probably just need to you know use whatever tool they have instead of</p>



<p class="wp-block-paragraph">network manager so I&#8217;m gonna edit the ethernet connection and I&#8217;m gonna print the connection</p>



<p class="wp-block-paragraph">the connection details just to double check here.</p>



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



<p class="wp-block-paragraph">I guess it&#8217;s fine.</p>



<p class="wp-block-paragraph">So now I&#8217;m going to set up the IPv4 settings.</p>



<p class="wp-block-paragraph">So I&#8217;m going to go set ipv4.method to manual</p>



<p class="wp-block-paragraph">because I want a static IP.</p>



<p class="wp-block-paragraph">Getting dynamic IPs that are also fixed is kind of like another video.</p>



<p class="wp-block-paragraph">I want to set the address to the one that we just put into the command line.</p>



<p class="wp-block-paragraph">So 1.123 and give it a 24 block,</p>



<p class="wp-block-paragraph">meaning it&#8217;ll be considered in the same subnet</p>



<p class="wp-block-paragraph">with other addresses that only have the last number changed.</p>



<p class="wp-block-paragraph">Then we&#8217;ll set the gateway to 1.1,</p>



<p class="wp-block-paragraph">which is the router address.</p>



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



<p class="wp-block-paragraph">I&#8217;m looking at notes right now, 1.1.</p>



<p class="wp-block-paragraph">And then we&#8217;ll set the DNS.</p>



<p class="wp-block-paragraph">You don&#8217;t actually necessarily need to set the DNS</p>



<p class="wp-block-paragraph">if you&#8217;re, well, I don&#8217;t know,</p>



<p class="wp-block-paragraph">maybe you probably should if we&#8217;re doing static right now.</p>



<p class="wp-block-paragraph">Yeah, you should probably maybe try setting the DNS</p>



<p class="wp-block-paragraph">as your router, because usually your router</p>



<p class="wp-block-paragraph">is also your DNS server at home.</p>



<p class="wp-block-paragraph">If that doesn&#8217;t work, maybe try a different number</p>



<p class="wp-block-paragraph">that you can find online.</p>



<p class="wp-block-paragraph">This one is, I think, Google DNS.</p>



<p class="wp-block-paragraph">You just need at least one DNS server,</p>



<p class="wp-block-paragraph">preferably two or more that works</p>



<p class="wp-block-paragraph">so you can resolve numbers to names</p>



<p class="wp-block-paragraph">and your computer can go online by typing names.</p>



<p class="wp-block-paragraph">So for me, these are my DNS servers.</p>



<p class="wp-block-paragraph">So I&#8217;m just gonna type them in real fast.</p>



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



<p class="wp-block-paragraph">And then you don&#8217;t need to do this next setting,</p>



<p class="wp-block-paragraph">You don&#8217;t need to do this next setting, but I like to be able to use shorter server names.</p>



<p class="wp-block-paragraph">So for me, instead of typing… Let me show you what this means in a second. So I&#8217;m going to say</p>



<p class="wp-block-paragraph">my search domain is home because I have a fake domain at home called home. Most people do LAN.</p>



<p class="wp-block-paragraph">You should probably double check this by saying print ipv4, like print ipv4. And then after we&#8217;re</p>



<p class="wp-block-paragraph">reason I do this is if I ping a server, like let&#8217;s say I do router.home, for me that&#8217;s too much</p>



<p class="wp-block-paragraph">typing every single time. If I added that.home search domain, then I could just ping router.</p>



<p class="wp-block-paragraph">So that&#8217;s the only reason that I do that. It&#8217;s just a little bit more convenient.</p>



<p class="wp-block-paragraph">So now let&#8217;s remove the setting that we put into the command line so that we have more freedom to</p>



<p class="wp-block-paragraph">modify the network in the future if we want to. So let&#8217;s go to the boot partition.</p>



<p class="wp-block-paragraph">We&#8217;re in the PI right now, so it&#8217;s a little bit different.</p>



<p class="wp-block-paragraph">We&#8217;ll go into the firmware subfolder and then we&#8217;ll modify that command line file that we</p>



<p class="wp-block-paragraph">had in before where we were forcing that IP.</p>



<p class="wp-block-paragraph">We&#8217;ll just erase this so that it&#8217;s no longer forced because the network manager configuration</p>



<p class="wp-block-paragraph">we just did should be okay.</p>



<p class="wp-block-paragraph">And then let&#8217;s reboot, reboot the machine.</p>



<p class="wp-block-paragraph">Do another ping so that I can get online as soon as it comes back up.</p>



<p class="wp-block-paragraph">Should just take a couple seconds here.</p>



<p class="wp-block-paragraph">seconds here. So how was your day? How are you? I think somebody let me know if I look weird in</p>



<p class="wp-block-paragraph">this camera because I have like a new camera with like a viewfinder or not a viewfinder,</p>



<p class="wp-block-paragraph">like an LCD display. I didn&#8217;t used to have that before. I had the oldest, cheapest,</p>



<p class="wp-block-paragraph">crappiest camera you could possibly imagine. Now it&#8217;s just kind of cheap.</p>



<p class="wp-block-paragraph">lcd you know screen so i&#8217;m looking at my own face right now instead of the camera</p>



<p class="wp-block-paragraph">so tell me if this seems strange or weird to you</p>



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



<p class="wp-block-paragraph">Okay, so I&#8217;m back.</p>



<p class="wp-block-paragraph">I don&#8217;t know where I cut the last video, but basically we had just set a static IP address</p>



<p class="wp-block-paragraph">on the Pi and then rebooted it and it didn&#8217;t come back online.</p>



<p class="wp-block-paragraph">So I had to stop the video and just try to figure out what I did wrong.</p>



<p class="wp-block-paragraph">And basically I forgot to tell the connection to start on boot.</p>



<p class="wp-block-paragraph">So what I did to fix it is I went into the SD card again.</p>



<p class="wp-block-paragraph">So I did another mount.</p>



<p class="wp-block-paragraph">I didn&#8217;t mount the boot partition.</p>



<p class="wp-block-paragraph">I only needed to mount the root partition.</p>



<p class="wp-block-paragraph">and the path that you go into is pretty much this if you&#8217;re using network manager</p>



<p class="wp-block-paragraph">you go into your temporary amount so that&#8217;s this first part right here temp pi root and then the</p>



<p class="wp-block-paragraph">file system from the pi&#8217;s perspective this is the path where you can find your system connections so</p>



<p class="wp-block-paragraph">etc network manager system connections inside of it you&#8217;ll see a file for every connection that you</p>



<p class="wp-block-paragraph">set up on the fail that you just did or that i just did maybe this will prevent you from</p>



<p class="wp-block-paragraph">failing. Maybe I&#8217;ll show you how to set that inside of the Pi too, just to be sure.</p>



<p class="wp-block-paragraph">So basically we&#8217;re just going to edit that connection file. There&#8217;s a bunch more stuff</p>



<p class="wp-block-paragraph">down below, but I just kind of spaced that down so you won&#8217;t see it. What you&#8217;re really interested</p>



<p class="wp-block-paragraph">here in this connection file is auto connect. It should have been set to true. And now if we do that,</p>



<p class="wp-block-paragraph">we should be able to unmount the card and boot the Pi back up and then it should go online.</p>



<p class="wp-block-paragraph">It&#8217;s actually kind of like maybe a good reminder to always include redundancies as a good computer</p>



<p class="wp-block-paragraph">nerd, right?</p>



<p class="wp-block-paragraph">Computer scientists, computer nerds, we always like have redundancies in everything.</p>



<p class="wp-block-paragraph">What I should have done is chose a different IP address for the network manager connection.</p>



<p class="wp-block-paragraph">That way if I screwed it up, the Pi would still boot under the first address and only</p>



<p class="wp-block-paragraph">after seeing that it booted with the new address, I could have removed the first address.</p>



<p class="wp-block-paragraph">But you know, I&#8217;m a little impatient and careless sometimes.</p>



<p class="wp-block-paragraph">I&#8217;m going to unmount this root partition and we&#8217;ll go back to looking at the</p>



<p class="wp-block-paragraph">pings, right? That&#8217;s the correct ping.</p>



<p class="wp-block-paragraph">I&#8217;m going to remove the SD card from the reader.</p>



<p class="wp-block-paragraph">I&#8217;m going to put it back into the pie and then I&#8217;m going to plug in the power.</p>



<p class="wp-block-paragraph">Okay. Now, hopefully it won&#8217;t take long before the pie comes back online.</p>



<p class="wp-block-paragraph">If it never does, you and me are going to be sitting here.</p>



<p class="wp-block-paragraph">You and me are going to be sitting here.</p>



<p class="wp-block-paragraph">Oh, please, come on, what have I done wrong?</p>



<p class="wp-block-paragraph">Okay, it works this time.</p>



<p class="wp-block-paragraph">So it was definitely the auto connect.</p>



<p class="wp-block-paragraph">So now I&#8217;m going to go SSH into the Pi.</p>



<p class="wp-block-paragraph">We already saw that security warning, I think, either in this video or the other video, but</p>



<p class="wp-block-paragraph">what have I done?</p>



<p class="wp-block-paragraph">I forgot to put the one there again.</p>



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



<p class="wp-block-paragraph">Dumb. Okay, so we&#8217;re in the pie. First boot, first connection without even using a computer monitor. Pretty sweet.</p>



<p class="wp-block-paragraph">So now I&#8217;m going to go sudo network manager command line show and then I&#8217;m going to edit the ethernet connection</p>



<p class="wp-block-paragraph">just to show you what we should have set before we saved. It would have been connection.autoconnect.</p>



<p class="wp-block-paragraph">Connect to yes.</p>



<p class="wp-block-paragraph">That didn&#8217;t change anything, but that&#8217;s what I should have done.</p>



<p class="wp-block-paragraph">I mean, it would have changed something before.</p>



<p class="wp-block-paragraph">So now we&#8217;re inside the Pi, and we&#8217;re ready to start setting up more stuff.</p>



<p class="wp-block-paragraph">So the first thing I&#8217;m going to do is, well, I&#8217;d like to change the hostname on this Pi.</p>



<p class="wp-block-paragraph">So I&#8217;m going to do sudo nano etc hostname.</p>



<p class="wp-block-paragraph">There&#8217;s a command called hostname I think you can use, but I just like to set it in the file.</p>



<p class="wp-block-paragraph">So basically, we want to set the hostname of the Pi.</p>



<p class="wp-block-paragraph">pi that&#8217;s not terribly useful for now but I just like it because it shows up on the command line</p>



<p class="wp-block-paragraph">so I&#8217;m going to go pi repeater dot living room dot home don&#8217;t judge me for my silly domain names</p>



<p class="wp-block-paragraph">so now the next time we reboot the pi we&#8217;ll have a good domain name then I&#8217;m going to do an update</p>



<p class="wp-block-paragraph">so I&#8217;m going to do actually you know what what you should do at home I&#8217;m going to omit this just to</p>



<p class="wp-block-paragraph">sure everybody should do that because the local list of packages that are available needs to be</p>



<p class="wp-block-paragraph">updated otherwise you might have a hard time installing later it sometimes gets out of sync</p>



<p class="wp-block-paragraph">and it doesn&#8217;t work so we&#8217;ll all do update at home you should do upgrade right away i&#8217;m not</p>



<p class="wp-block-paragraph">going to do upgrade right now because it&#8217;ll take a long time and then after you do upgrade you</p>



<p class="wp-block-paragraph">should do auto remove with a dash yes there or just type yes manually again i&#8217;m not going to do</p>



<p class="wp-block-paragraph">And then you should reboot the computer or reboot the PI</p>



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



<p class="wp-block-paragraph">Install a program called screen which gives us a virtual screen. Let me show you just real fast</p>



<p class="wp-block-paragraph">What this is for so sudo apt install screen</p>



<p class="wp-block-paragraph">It&#8217;s just basically a virtual screen that you can work on</p>



<p class="wp-block-paragraph">So if you accidentally lose your connection or something goes wrong, you can log back in and get right back to your work</p>



<p class="wp-block-paragraph">so I type screen here and I&#8217;ll just type like a bunch of random characters and</p>



<p class="wp-block-paragraph">type like a bunch of random characters and then I will detach from the screen and exit the Pi. So</p>



<p class="wp-block-paragraph">imagine you lost your internet connection or your network connection. I can go back into the Pi now</p>



<p class="wp-block-paragraph">and I can list screens with screen-list and then I can reattach to it with a dash R.</p>



<p class="wp-block-paragraph">Notice how my work is still there. This doesn&#8217;t survive if the whole machine reboots but this has</p>



<p class="wp-block-paragraph">saved me a few times from losing work when I was connected to a remote terminal. Okay so now what</p>



<p class="wp-block-paragraph">Okay, so now what do we have to do?</p>



<p class="wp-block-paragraph">The next most important thing that we have to do is install our WiFi dongle.</p>



<p class="wp-block-paragraph">We have to actually install drivers.</p>



<p class="wp-block-paragraph">If you&#8217;re looking at this video way in the future, I don&#8217;t know, maybe the Pi will handle</p>



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



<p class="wp-block-paragraph">But right now, as of the making of this video, this dongle doesn&#8217;t work unless you install</p>



<p class="wp-block-paragraph">the drivers from source.</p>



<p class="wp-block-paragraph">So let me just prove to you real fast.</p>



<p class="wp-block-paragraph">out. Well, maybe you&#8217;ll just have to trust me. At home, do this command IP, whoops, do this command</p>



<p class="wp-block-paragraph">IP ADDR and hit enter. And you should see two network adapters, you should see Ethernet zero</p>



<p class="wp-block-paragraph">and also wireless LAN zero. Wireless LAN zero should be already working. It&#8217;s not connected</p>



<p class="wp-block-paragraph">yet, but it&#8217;s working. Because well, that&#8217;s the one that&#8217;s built into the pie. You want also</p>



<p class="wp-block-paragraph">another one you want wireless LAN 1 like we talked about before for that we have to plug</p>



<p class="wp-block-paragraph">in the dongle and install the the firmware so I think what I&#8217;m going to do now is stop</p>



<p class="wp-block-paragraph">this video and jump into another one where I just kind of talk about how to install this</p>



<p class="wp-block-paragraph">dongle so by the time you watch this video that other video should be posted I&#8217;m basically</p>



<p class="wp-block-paragraph">just going to expect that you pause this video and you go over there and you watch the video</p>



<p class="wp-block-paragraph">If you don&#8217;t have the same dongle as me, that&#8217;s okay.</p>



<p class="wp-block-paragraph">The instructions will probably help you get a pretty good idea for how to do it yourself.</p>



<p class="wp-block-paragraph">And then again, if enough people comment about the same…</p>



<p class="wp-block-paragraph">I don&#8217;t know if I said this before.</p>



<p class="wp-block-paragraph">If enough people comment asking me to make a video for the same dongle,</p>



<p class="wp-block-paragraph">I might buy the dongle and then just try to install it for everybody.</p>



<p class="wp-block-paragraph">We&#8217;ll see what happens.</p>



<p class="wp-block-paragraph">So I&#8217;m going to cut the video now.</p>



<p class="wp-block-paragraph">Go to the other video that shows you how to install the dongle, and then we&#8217;ll continue.</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">could you please subscribe and follow this channel or these videos</p>



<p class="wp-block-paragraph">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</p>



<p class="wp-block-paragraph">and grow this community.</p>



<p class="wp-block-paragraph">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 do me a</p>



<p class="wp-block-paragraph">kindness and and subscribe you know sometimes I&#8217;m sleeping in the middle of</p>



<p class="wp-block-paragraph">the night and I just wake up because I know somebody subscribed or followed it</p>



<p class="wp-block-paragraph">just wakes me up and I get filled with joy that&#8217;s exactly what happens every</p>



<p class="wp-block-paragraph">single time so you could do it as a nice favor to me or you could you control me</p>



<p class="wp-block-paragraph">if you want to just wake me up in the middle of the night just subscribe and</p>



<p class="wp-block-paragraph">then I&#8217;ll just wake up I promise that&#8217;s what will happen also if you look at the</p>



<p class="wp-block-paragraph">look at the middle of the screen right now you should see a qr code which you can scan in order</p>



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



<p class="wp-block-paragraph">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 and uh</p>



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



<p class="wp-block-paragraph">want to 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/headless-raspberry-pi-setup-ssh-static-ip-and-wifi-dongle-guide/">Headless Raspberry Pi Setup: SSH, Static IP, and WiFi Dongle Guide</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/headless-raspberry-pi-setup-ssh-static-ip-and-wifi-dongle-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How Your CPU Works: Fetch, Decode, Execute Explained</title>
		<link>https://www.NeuralLantern.com/how-your-cpu-works-fetch-decode-execute-explained/</link>
					<comments>https://www.NeuralLantern.com/how-your-cpu-works-fetch-decode-execute-explained/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Sun, 10 Aug 2025 06:23:48 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[ALU]]></category>
		<category><![CDATA[assembly language]]></category>
		<category><![CDATA[code cache]]></category>
		<category><![CDATA[computer architecture]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[CPU clock]]></category>
		<category><![CDATA[data cache]]></category>
		<category><![CDATA[fetch decode execute]]></category>
		<category><![CDATA[instruction pointer]]></category>
		<category><![CDATA[processor basics]]></category>
		<category><![CDATA[RIP register]]></category>
		<category><![CDATA[tech tutorials]]></category>
		<category><![CDATA[x86 processors]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=199</guid>

					<description><![CDATA[<p>Discover how your CPU fetches, decodes, and executes instructions in this beginner-friendly guide. Learn about the clock, RIP register, and ALU in a simple breakdown of computer architecture.</p>
<p>The post <a href="https://www.NeuralLantern.com/how-your-cpu-works-fetch-decode-execute-explained/">How Your CPU Works: Fetch, Decode, Execute Explained</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="How Your CPU Works: Fetch, Decode, Execute Explained" width="1380" height="776" src="https://www.youtube.com/embed/UXMDPnMfcAM?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">Get a clear, beginner-friendly dive into how your CPU works! This video explains the fetch-decode-execute cycle, the role of the clock, instruction pointer (RIP), and units like the ALU and cache. Learn why timing matters and how your CPU handles instructions step-by-step. Perfect for gamers, coders, or anyone curious about what makes computers tick. Inspired by Kip Irvine’s Assembly Language for x86 Processors, this is your gateway to understanding computer architecture. Subscribe for more tech insights and hit that QR code to explore more tutorials! #CPU #ComputerScience #TechTutorials</p>



<p class="wp-block-paragraph">Introduction to CPU Operations 00:00:00<br>CPU Clock Explanation 00:00:17<br>Clock Cycle and Stability 00:01:07<br>Instruction Fetch from RAM 00:03:24<br>Instruction Pointer (RIP) Role 00:03:48<br>Sequential and Conditional Execution 00:04:49<br>Code Cache Functionality 00:06:24<br>Instruction Decoding Process 00:07:51<br>Control Unit Operations 00:08:33<br>Arithmetic Logic Unit (ALU) 00:08:52<br>Floating Point Unit 00:11:03<br>Data Cache Usage 00:12:08<br>Summary of CPU Process 00:14:36<br>Closing and Subscription Call 00:15:07</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">CPU #ComputerScience #TechTutorials #ComputerArchitecture #AssemblyLanguage #TechExplained #CPUBasics #LearnTech #x86Processors #Coding</p>



<p class="wp-block-paragraph">Hello there. Let&#8217;s talk about how your CPU fetches, decodes and executes instructions.</p>



<p class="wp-block-paragraph">We&#8217;re going to just do a quick surface level overview, but I hope you like it.</p>



<p class="wp-block-paragraph">Okay. So for starters, your CPU has something called the clock.</p>



<p class="wp-block-paragraph">keep my pen onto one monitor here let me just double check that real fast</p>



<p class="wp-block-paragraph">okay is it working yeah okay so</p>



<p class="wp-block-paragraph">okay so notice how we have this line that goes up and down and up and down it kind of looks like a</p>



<p class="wp-block-paragraph">little binary line uh it actually is uh sometimes your cpu is outputting a zero to this special</p>



<p class="wp-block-paragraph">and it just oscillates between zero and one constantly it goes zero one zero one zero one</p>



<p class="wp-block-paragraph">it does so very very very very fast and the reason it does that is because something needs to control</p>



<p class="wp-block-paragraph">the timing of your cpu imagine this we kind of take this for granted but when you apply electricity</p>



<p class="wp-block-paragraph">somewhere as a human you kind of feel like the electricity goes to the other place like on the</p>



<p class="wp-block-paragraph">other side of your house or your room or whatever you kind of feel like it goes there instantaneously</p>



<p class="wp-block-paragraph">really fast but in reality electricity doesn&#8217;t go faster than the speed of light so there is a limit</p>



<p class="wp-block-paragraph">which means if you have a cpu that is executing instructions really really really really fast</p>



<p class="wp-block-paragraph">you know fetching instructions from your system ram really really fast</p>



<p class="wp-block-paragraph">there&#8217;s there&#8217;s there&#8217;s the problem of trying to um to know for sure that the electricity actually</p>



<p class="wp-block-paragraph">made it uh to the other place in time uh so like what if we said let&#8217;s load some instructions from</p>



<p class="wp-block-paragraph">load some instructions from memory, they come down the wire to your CPU.</p>



<p class="wp-block-paragraph">How do we know when it actually finished coming down the wire to the CPU?</p>



<p class="wp-block-paragraph">We just take it for granted.</p>



<p class="wp-block-paragraph">But in reality, physics has a limit.</p>



<p class="wp-block-paragraph">And so the electricity needs time to get there and it needs time to stabilize.</p>



<p class="wp-block-paragraph">So the clock cycle helps us with that timing.</p>



<p class="wp-block-paragraph">So, you know, if we make the clock go too fast, your CPU becomes unstable.</p>



<p class="wp-block-paragraph">Your gamers, you gamers probably know that.</p>



<p class="wp-block-paragraph">If we make it too slow, then it&#8217;ll work.</p>



<p class="wp-block-paragraph">it&#8217;ll work, but, um, you know, we&#8217;re not getting the fastest, you know, CPU, uh, that, that</p>



<p class="wp-block-paragraph">we, that we can, we&#8217;re not getting all the performance out of it that we can.</p>



<p class="wp-block-paragraph">So we make it, we make the clock cycle go as fast as we can, uh, without making the</p>



<p class="wp-block-paragraph">CPU, uh, instable.</p>



<p class="wp-block-paragraph">And so just keep that in mind.</p>



<p class="wp-block-paragraph">That&#8217;s one component of the CPU.</p>



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



<p class="wp-block-paragraph">So then the next thing I wanted to show you, oh, and by the way, let me give credit to</p>



<p class="wp-block-paragraph">the authors of this book.</p>



<p class="wp-block-paragraph">I&#8217;m just looking at a diagram, but, um, this book is written by someone named Kip</p>



<p class="wp-block-paragraph">This book is written by someone named Kip Irvine</p>



<p class="wp-block-paragraph">and it&#8217;s titled Assembly Language for X86 Processors.</p>



<p class="wp-block-paragraph">It&#8217;s written by Pearson or it&#8217;s published by Pearson</p>



<p class="wp-block-paragraph">and the year is 2014.</p>



<p class="wp-block-paragraph">So get a copy of this book.</p>



<p class="wp-block-paragraph">Anyway, so this is a simplified CPU block diagram.</p>



<p class="wp-block-paragraph">Let me get my notes here real fast</p>



<p class="wp-block-paragraph">so I don&#8217;t forget what I was supposed to say.</p>



<p class="wp-block-paragraph">Clock ticks and alu.</p>



<p class="wp-block-paragraph">Okay, so I guess that&#8217;s pretty much it.</p>



<p class="wp-block-paragraph">Imagine now that we have a little RAM stick or some place where we can get instructions for the CPU.</p>



<p class="wp-block-paragraph">So this is like system RAM, we&#8217;ll say.</p>



<p class="wp-block-paragraph">And we&#8217;ll just pretend for the sake of argument that we already have existing circuitry</p>



<p class="wp-block-paragraph">that will easily transfer data back and forth from the RAM stick to the CPU.</p>



<p class="wp-block-paragraph">So anytime the CPU wants to grab some kind of data or like an instruction or something off the RAM stick,</p>



<p class="wp-block-paragraph">it can just do it. And that&#8217;s the arrow right there.</p>



<p class="wp-block-paragraph">keep in mind after that is that there is a special register in the CPU called the instruction pointer</p>



<p class="wp-block-paragraph">RIP in x86-64 assembly the RIP register and the RIP register it basically just holds a memory</p>



<p class="wp-block-paragraph">location telling the CPU where is the next where&#8217;s the address of the next instruction that we want</p>



<p class="wp-block-paragraph">to execute so you know imagine you have like some kind of memory address 0x I don&#8217;t know 55 and then</p>



<p class="wp-block-paragraph">an instruction on the very next actually let&#8217;s do five zero so I can increase this by eight without</p>



<p class="wp-block-paragraph">doing hex in my head we&#8217;ll say this is like the address five zero in hexadecimal so that means</p>



<p class="wp-block-paragraph">that the next time the CPU wants to execute an instruction it&#8217;s just going to ask system ram</p>



<p class="wp-block-paragraph">for that address system ram is going to give it whatever ones and zeros it has and then it can be</p>



<p class="wp-block-paragraph">decoded and executed after that and then of course we have to execute a program you know step by step</p>



<p class="wp-block-paragraph">you know step by step we have to execute more instructions and we can&#8217;t just do one instruction</p>



<p class="wp-block-paragraph">so typically in a program you execute instructions one by one by one by one by one</p>



<p class="wp-block-paragraph">and then every once in a while there might be some decision logic like you have an if else</p>



<p class="wp-block-paragraph">branch like let&#8217;s say uh you know for the for the high level people i&#8217;ll put a question mark here</p>



<p class="wp-block-paragraph">you have like an if statement and you say like if that&#8217;s true then execute this i&#8217;ll put maybe i&#8217;ll</p>



<p class="wp-block-paragraph">then we&#8217;ll just execute this other logic down here. So you know very often we execute instructions</p>



<p class="wp-block-paragraph">sequentially but every once in a while we have to jump right because if if you executed this</p>



<p class="wp-block-paragraph">if statement and you realized that this condition was not true then you could not execute the body</p>



<p class="wp-block-paragraph">that came right after the comparison instructions you would have to jump down to wherever the else</p>



<p class="wp-block-paragraph">block is so there is circuitry inside of the CPU that allows you to either increase the instruction</p>



<p class="wp-block-paragraph">instruction pointer by 8 bytes, 8 bytes because 64 bits per instruction because that&#8217;s your CPU.</p>



<p class="wp-block-paragraph">So you just kind of go sequentially or to jump somewhere because you made a decision or you&#8217;re</p>



<p class="wp-block-paragraph">like making a function call or whatever. So just keep in mind that under the hood, under this</p>



<p class="wp-block-paragraph">diagram, there is a lot more logic even than the more detailed diagrams that you can find elsewhere.</p>



<p class="wp-block-paragraph">There&#8217;s just like a lot more detail. So anyway, the RIP register just kind of increases by 8</p>



<p class="wp-block-paragraph">every time we execute an instruction,</p>



<p class="wp-block-paragraph">sometimes it&#8217;ll drastically change its address</p>



<p class="wp-block-paragraph">so we can jump execution somewhere else</p>



<p class="wp-block-paragraph">in order to make a decision.</p>



<p class="wp-block-paragraph">So just keep that in mind.</p>



<p class="wp-block-paragraph">So suppose that we just fetched an instruction from memory.</p>



<p class="wp-block-paragraph">You know, it comes in here</p>



<p class="wp-block-paragraph">and we kind of send it down the line.</p>



<p class="wp-block-paragraph">We first give it to the code cache unit.</p>



<p class="wp-block-paragraph">Your CPU is just not a solid block of stuff.</p>



<p class="wp-block-paragraph">It&#8217;s got subunits inside of it.</p>



<p class="wp-block-paragraph">And one of these units is the code cache unit.</p>



<p class="wp-block-paragraph">it&#8217;s a lot more complicated than what you&#8217;re seeing here but basically</p>



<p class="wp-block-paragraph">system ram is very slow dealing with the cpu internally is very very very fast in comparison</p>



<p class="wp-block-paragraph">so if we have like a register or some unit that we&#8217;re accessing that&#8217;s inside of the cpu it&#8217;s</p>



<p class="wp-block-paragraph">lightning fast compared to accessing the memory so that means cpus have caches which just i&#8217;m not</p>



<p class="wp-block-paragraph">going to go too much into caches for this video but basically every time we get a new instruction</p>



<p class="wp-block-paragraph">we might put it into the cache, which is like incredibly fast because it&#8217;s hardware that&#8217;s part</p>



<p class="wp-block-paragraph">of the CPU. Then maybe sometime in the future, we might want to execute the same exact instruction</p>



<p class="wp-block-paragraph">at the same exact address. Again, that&#8217;s possible. Remember we have loops. We can execute the same</p>



<p class="wp-block-paragraph">instructions a bunch of times in a row. So if we come across an instruction that we have executed</p>



<p class="wp-block-paragraph">in the past and it&#8217;s already in the code cache, then we don&#8217;t actually need to wait for memory</p>



<p class="wp-block-paragraph">to fetch the instruction for us, we can just go directly to the code cache and it&#8217;s a dramatic</p>



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



<p class="wp-block-paragraph">Remember, when you access memory, execution has to stall for quite a long time usually</p>



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



<p class="wp-block-paragraph">Okay, so that&#8217;s what the code cache does.</p>



<p class="wp-block-paragraph">Once the memory and the code cache have figured out, okay, we got the instruction and everything&#8217;s</p>



<p class="wp-block-paragraph">good, then we just sort of decode the instruction.</p>



<p class="wp-block-paragraph">We decide, you know, what is in the instruction?</p>



<p class="wp-block-paragraph">it all like data or is it all like like is it half and half and part instruction</p>



<p class="wp-block-paragraph">part data part whatever there&#8217;s lots of different formats for instructions so</p>



<p class="wp-block-paragraph">the instruction decoder just sort of like you know decides how to separate</p>



<p class="wp-block-paragraph">it and it sends data into the control unit notice how there&#8217;s a little arrow</p>



<p class="wp-block-paragraph">pointing from the instruction decoder to the instruction pointer so we could use</p>



<p class="wp-block-paragraph">that information to decide how to modify the RIP register like if we&#8217;re gonna go</p>



<p class="wp-block-paragraph">or if we&#8217;re going to jump somewhere.</p>



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



<p class="wp-block-paragraph">when we send the instruction to the control unit,</p>



<p class="wp-block-paragraph">the control unit is not necessarily the brain</p>



<p class="wp-block-paragraph">because the whole CPU is the brain of the computer,</p>



<p class="wp-block-paragraph">but the control unit is kind of like the decider of the CPU.</p>



<p class="wp-block-paragraph">At least that&#8217;s the way I see it.</p>



<p class="wp-block-paragraph">It decides what to do.</p>



<p class="wp-block-paragraph">There&#8217;s a lot of other subunits in the CPU.</p>



<p class="wp-block-paragraph">Notice how down here we have, you know, CPU registers</p>



<p class="wp-block-paragraph">and we also have the all you.</p>



<p class="wp-block-paragraph">the all you the all you is basically the arithmetic logical unit so it&#8217;s it&#8217;s a little subunit that</p>



<p class="wp-block-paragraph">will execute mathematical instructions or logical instructions like it&#8217;ll take some bits and it&#8217;ll</p>



<p class="wp-block-paragraph">it&#8217;ll move them to the left or the right or it&#8217;ll flip the bits or whatever or it&#8217;ll add two numbers</p>



<p class="wp-block-paragraph">together the registers you know they&#8217;re very very very fast they&#8217;re like you know the variables of</p>



<p class="wp-block-paragraph">the cpu um so the control unit will examine uh whatever it&#8217;s getting and it&#8217;ll decide all right</p>



<p class="wp-block-paragraph">want us to do it wants us to add two integers together or it wants us to</p>



<p class="wp-block-paragraph">write something to memory or it wants us to do whatever right so when</p>



<p class="wp-block-paragraph">the control unit receives input remember this is all just like ones and zeros</p>



<p class="wp-block-paragraph">right so imagine if we had like a bunch of ones and zeros coming in and they&#8217;re</p>



<p class="wp-block-paragraph">just wired directly into the control unit right so then the control unit has</p>



<p class="wp-block-paragraph">its own internal circuitry that that makes it so well if I receive this</p>



<p class="wp-block-paragraph">going to tell everybody else to add numbers together and if I see some other number I&#8217;m</p>



<p class="wp-block-paragraph">going to tell everybody else to multiply numbers together so the control unit is really responsible</p>



<p class="wp-block-paragraph">for deciding what the other units need to do in order to accomplish the current instruction</p>



<p class="wp-block-paragraph">so gosh I really need to fix this I just reconfigured this thing and now it&#8217;s just like</p>



<p class="wp-block-paragraph">drawing even when I don&#8217;t want it to draw so the control unit let&#8217;s say that we do that we have</p>



<p class="wp-block-paragraph">that we have like an addition instruction we want to add two registers together the control unit will</p>



<p class="wp-block-paragraph">send this down the wire to let the all you unit know that it needs to perform addition the all</p>



<p class="wp-block-paragraph">you unit also has inputs and based on what it receives it will decide to do something it&#8217;ll</p>



<p class="wp-block-paragraph">decide to add or subtract or multiply or just whatever so the control unit sends the right</p>



<p class="wp-block-paragraph">input into the all you unit so that it knows to add or do whatever we wanted it to do</p>



<p class="wp-block-paragraph">operands like it might receive data that just came from memory it might receive registers it might</p>



<p class="wp-block-paragraph">receive just like a raw immediate number that&#8217;s embedded into the instruction on the other hand</p>



<p class="wp-block-paragraph">we might also send something into the floating point unit so the control unit it&#8217;s always sending</p>



<p class="wp-block-paragraph">all of these signals to all of its you know connected units these wires it&#8217;s not like we</p>



<p class="wp-block-paragraph">can remove these wires so there&#8217;s always something even if it&#8217;s a zero going down the line</p>



<p class="wp-block-paragraph">so the control unit will basically send the right signals down to the all you to tell it you&#8217;re</p>



<p class="wp-block-paragraph">going to add and it&#8217;ll send the right signals down to the floating point unit to say you&#8217;re</p>



<p class="wp-block-paragraph">not going to do anything or just we&#8217;re not we&#8217;re going to ignore the result there&#8217;s like all these</p>



<p class="wp-block-paragraph">logical gates that we&#8217;re not showing on this diagram where we can just like ignore the output</p>



<p class="wp-block-paragraph">result of some unit that we&#8217;re not going to use so it&#8217;s sending all these signals to these units</p>



<p class="wp-block-paragraph">Just like a quick note here, the all you only deals with integer math and, you know, bitwise</p>



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



<p class="wp-block-paragraph">Floating point numbers in the machine are stored totally differently than integers.</p>



<p class="wp-block-paragraph">So we need a totally different unit in order to process them.</p>



<p class="wp-block-paragraph">So that&#8217;s why there are two units there.</p>



<p class="wp-block-paragraph">Well, I mean, I guess depending on, you know, what CPU we&#8217;re talking about, but like as</p>



<p class="wp-block-paragraph">far as the ones that I&#8217;m aware of and that I use.</p>



<p class="wp-block-paragraph">So then, you know, the data cache, kind of the same thing.</p>



<p class="wp-block-paragraph">kind of the same thing um you know there&#8217;s like a code cache up here and a data cache down there</p>



<p class="wp-block-paragraph">so sometimes we might want to fetch data that we&#8217;ve already fetched before and we don&#8217;t want</p>



<p class="wp-block-paragraph">to hit system ram so you know we don&#8217;t want that slow down so we&#8217;ll just take it from the cache</p>



<p class="wp-block-paragraph">and um we will also populate the cache when we have a result so when this like all you is done</p>



<p class="wp-block-paragraph">adding whatever it&#8217;s going to add it&#8217;ll send its result data to the data cache and then um</p>



<p class="wp-block-paragraph">two or three or whatever then we can reuse the result in another instruction or send it back to</p>



<p class="wp-block-paragraph">memory or do whatever we want to so this is like a basic idea right like you you start off by you</p>



<p class="wp-block-paragraph">know grabbing something from memory possibly if it&#8217;s already in the cache then you wouldn&#8217;t</p>



<p class="wp-block-paragraph">actually grab it and then the instruction decoder decides you know are we gonna we&#8217;re gonna jump</p>



<p class="wp-block-paragraph">are we gonna go to the next instruction after this is over so it&#8217;ll have the next address</p>



<p class="wp-block-paragraph">notice how there&#8217;s kind of like a little cycle that goes here between code cache instruction</p>



<p class="wp-block-paragraph">decoder and instruction pointer and so you know we&#8217;re always kind of deciding what&#8217;s the next</p>



<p class="wp-block-paragraph">instruction that we&#8217;re going to execute and then we like you know send the decoded instruction to</p>



<p class="wp-block-paragraph">the control unit the control unit decides you know are you going to do some addition are we</p>



<p class="wp-block-paragraph">going to use registers or not and then you know like are you not going to do anything or are maybe</p>



<p class="wp-block-paragraph">you are going to do something in this case I&#8217;m just saying the floating point won&#8217;t do anything</p>



<p class="wp-block-paragraph">integers. And then once that is all processed, you know, it comes to the data cache and, um,</p>



<p class="wp-block-paragraph">well, we can, we can basically just, uh, you know, write it back to memory. I think this</p>



<p class="wp-block-paragraph">diagram is not showing an arrow that will write it, write it back to memory. Um,</p>



<p class="wp-block-paragraph">yeah, the code cache is definitely not going to feed directly into memory. That&#8217;s just a cache,</p>



<p class="wp-block-paragraph">but you know, so, so imagine like there&#8217;s a, there&#8217;s like another wire here that goes</p>



<p class="wp-block-paragraph">so when we have a result we can just write it into system ram</p>



<p class="wp-block-paragraph">let me see if i forgot to say anything rip</p>



<p class="wp-block-paragraph">yeah that&#8217;s basically all i wanted to say okay so now you have a fairly good idea of at least</p>



<p class="wp-block-paragraph">one level deeper of what&#8217;s going on inside of your computer how the cpu in a general way loads</p>



<p class="wp-block-paragraph">and all these little subunits getting told what to do</p>



<p class="wp-block-paragraph">and the results getting piped back to the instruction pointer</p>



<p class="wp-block-paragraph">and also to system RAM and so forth.</p>



<p class="wp-block-paragraph">And it just keeps going like this again and again and again.</p>



<p class="wp-block-paragraph">And also just remember that at certain points</p>



<p class="wp-block-paragraph">during even one cycle, we wait for a clock tick.</p>



<p class="wp-block-paragraph">I&#8217;m not gonna say exactly when we wait</p>



<p class="wp-block-paragraph">because it&#8217;s kind of specific to what&#8217;s going on</p>



<p class="wp-block-paragraph">to be on the scope of this video.</p>



<p class="wp-block-paragraph">But yeah, the clock speed controls</p>



<p class="wp-block-paragraph">how fast these cycles go.</p>



<p class="wp-block-paragraph">And there&#8217;s much more advanced stuff</p>



<p class="wp-block-paragraph">And there&#8217;s much more advanced stuff that you could learn later,</p>



<p class="wp-block-paragraph">like pipelining and such to increase efficiency.</p>



<p class="wp-block-paragraph">But this is a basic idea of how your computer works.</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">Could you please subscribe and follow this channel or these videos or whatever it is you do on the current social media</p>



<p class="wp-block-paragraph">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 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 and I just wake up because I know somebody subscribed or followed</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 control me if you want to just wake me up in the middle of the</p>



<p class="wp-block-paragraph">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</p>



<p class="wp-block-paragraph">code which you can scan in order to go to the website which I think is also</p>



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



<p class="wp-block-paragraph">website where you can just kind of like see all the videos I published and the</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">that you want to see please leave a comment or if you just want to say hey what&#8217;s up what&#8217;s going on</p>



<p class="wp-block-paragraph">you know just send me a comment whatever i also wake up for those in the middle of the night i</p>



<p class="wp-block-paragraph">get i wake up in a cold sweat and i&#8217;m like it would really it really mean the world to me i</p>



<p class="wp-block-paragraph">really appreciate it. So again, thank you so much for watching this video and enjoy the cool music</p>



<p class="wp-block-paragraph">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/how-your-cpu-works-fetch-decode-execute-explained/">How Your CPU Works: Fetch, Decode, Execute Explained</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/how-your-cpu-works-fetch-decode-execute-explained/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Logic Gates Crash Course: Learn AND, OR, XOR, NOT &#038; Build Circuits</title>
		<link>https://www.NeuralLantern.com/logic-gates-crash-course-learn-and-or-xor-not-build-circuits/</link>
					<comments>https://www.NeuralLantern.com/logic-gates-crash-course-learn-and-or-xor-not-build-circuits/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Sun, 06 Jul 2025 13:41:22 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[AND gate]]></category>
		<category><![CDATA[beginner electronics]]></category>
		<category><![CDATA[binary logic]]></category>
		<category><![CDATA[circuit design]]></category>
		<category><![CDATA[computer engineering]]></category>
		<category><![CDATA[computer science basics]]></category>
		<category><![CDATA[digital electronics]]></category>
		<category><![CDATA[digital logic]]></category>
		<category><![CDATA[logic circuits]]></category>
		<category><![CDATA[logic gates]]></category>
		<category><![CDATA[NOT gate]]></category>
		<category><![CDATA[OR gate]]></category>
		<category><![CDATA[tech tutorials]]></category>
		<category><![CDATA[truth tables]]></category>
		<category><![CDATA[XOR gate]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=176</guid>

					<description><![CDATA[<p>Learn logic gates (AND, OR, XOR, NOT) with diagrams &#038; circuits. Fun, clear intro to digital logic for beginners.</p>
<p>The post <a href="https://www.NeuralLantern.com/logic-gates-crash-course-learn-and-or-xor-not-build-circuits/">Logic Gates Crash Course: Learn AND, OR, XOR, NOT &amp; Build Circuits</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="Logic Gates Crash Course: Learn AND, OR, XOR, NOT &amp; Build Circuits" width="1380" height="776" src="https://www.youtube.com/embed/ah5DzK_VJr0?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! In this video, I’m diving into the world of logic gates &#8211; AND, OR, XOR, and NOT. We’ll break down how each gate works, draw them in ANSI style, and rig up a circuit to see how they turn inputs into logical outputs. I’ll walk you through truth tables and show you how to chain gates for cool results, all while keeping it real and relatable. Whether you’re new to digital logic or just want a refresher, this is for you. Got questions? Drop a comment! Subscribe to join the crew, and scan the QR code to check out my site for more tutorials. Let’s geek out together!</p>



<p class="wp-block-paragraph">Introduction to Logic Gates 00:00:00<br>Overview of AND Gate 00:00:47<br>Overview of OR Gate 00:01:07<br>Overview of XOR Gate 00:01:24<br>Overview of NOT Gate 00:01:49<br>Drawing AND Gate 00:02:14<br>Drawing OR Gate 00:03:07<br>Drawing XOR Gate 00:04:12<br>Drawing NOT Gate 00:05:31<br>Building a Circuit 00:06:04<br>Combining Gates 00:07:21<br>Testing with All Zeros 00:09:56<br>Testing with All Ones 00:11:23<br>Testing with Random Inputs 00:12:32<br>Introduction to Truth Tables 00:15:00<br>Creating Truth Tables 00:16:03<br>Analyzing Circuit with Truth Tables 00:18:50<br>Hierarchical Truth Table Approach 00:20:04<br>Final Circuit Analysis 00:26:36<br>Conclusion and Call to Action 00:29:15</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">Okay, hey everybody! In this video I&#8217;m going to talk about logic gates. I&#8217;m going to show you</p>



<p class="wp-block-paragraph">AND, OR, XOR, and NOT. We&#8217;re going to draw them in a diagram style and we&#8217;re going to rig up a</p>



<p class="wp-block-paragraph">bunch against each other and see if we can figure out how they would process some input data into</p>



<p class="wp-block-paragraph">you know some logical output.</p>



<p class="wp-block-paragraph">Okay so for starters let&#8217;s just go over what the gates look like. If you don&#8217;t know how these gates</p>



<p class="wp-block-paragraph">don&#8217;t know how these gates work check my previous videos because I&#8217;ve explained them there. Here I&#8217;m</p>



<p class="wp-block-paragraph">just going to sort of try to draw them and make a little big a little circuit area that we can play</p>



<p class="wp-block-paragraph">with. Okay so AND. Okay you know what you want me to I&#8217;ll just do a quick recap. The AND gate just</p>



<p class="wp-block-paragraph">means that both bits have to be a 1 in order for a 1 2 output so if we do a 0 and a 0 and a 1 and</p>



<p class="wp-block-paragraph">sorry one and a zero and a one and a one then only this one is going to end up being a one</p>



<p class="wp-block-paragraph">everything else is going to be a zero for the logical or it&#8217;s going to be if we do zero zero</p>



<p class="wp-block-paragraph">zero one one zero and one one and if this is too fast and confusing for you see my other videos</p>



<p class="wp-block-paragraph">but basically it&#8217;s going to be a one for those three because if either of those bits are a one</p>



<p class="wp-block-paragraph">then the output is going to be a one and the only place it&#8217;ll be a zero is when both of the bits are</p>



<p class="wp-block-paragraph">Let&#8217;s look at XOR. So XOR is</p>



<p class="wp-block-paragraph">Basically and it&#8217;s an OR except this one position right here where both bits are a one that would end up being a zero</p>



<p class="wp-block-paragraph">So for XOR 0 0 0 1 1 0 1 1</p>



<p class="wp-block-paragraph">It&#8217;s going to be a 0 and</p>



<p class="wp-block-paragraph">Then a 1 and then a 1 and then a 0 so it&#8217;s just a little bit different from OR and then not just inverts the bits</p>



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



<p class="wp-block-paragraph">bit at a time and it&#8217;s just a zero becomes a one and a one becomes a zero and that&#8217;s pretty much it</p>



<p class="wp-block-paragraph">okay so maybe I should put not right here just to just to emphasize that I&#8217;m talking about not</p>



<p class="wp-block-paragraph">okay I&#8217;m definitely not not talking about not sorry so let&#8217;s do uh let&#8217;s draw a logical or a</p>



<p class="wp-block-paragraph">bitwise and gate it&#8217;s basically just kind of like this and then there&#8217;s a little flat ridge at the</p>



<p class="wp-block-paragraph">end of it and it takes two inputs there are many different styles to draw these kinds of gates but</p>



<p class="wp-block-paragraph">i&#8217;m going to use the ansi style i think for the most part so just keep in mind you know you can</p>



<p class="wp-block-paragraph">draw these in many different ways it&#8217;s going to take two inputs imagine this is a little circuit</p>



<p class="wp-block-paragraph">right here and it&#8217;s going to give you one output so if you imagine what we talked about before</p>



<p class="wp-block-paragraph">we could send it two different bits and it will produce the output for us so if we give it a zero</p>



<p class="wp-block-paragraph">for us. If we give it a 0 and a 1, it&#8217;s still going to output a 0. If we give it a 1 and a 0,</p>



<p class="wp-block-paragraph">still a 0. If we give it a 1 and a 1, then finally it&#8217;ll actually give us a 1.</p>



<p class="wp-block-paragraph">Okay, so that&#8217;s just the way that gate looks. And now I&#8217;m going to draw the next one.</p>



<p class="wp-block-paragraph">Let&#8217;s draw the OR. So maybe I&#8217;ll put OR here. Whoops. Oh, I got to do that. OR. So the OR gate</p>



<p class="wp-block-paragraph">kind of looks like the AND gate at least in the style that I&#8217;m drawing except the</p>



<p class="wp-block-paragraph">the flat ridges is more curved like this so you know an AND gate I&#8217;ll draw it in</p>



<p class="wp-block-paragraph">red just to remind you that this is not what we&#8217;re doing right now it&#8217;s you know</p>



<p class="wp-block-paragraph">flat right where&#8217;s the OR gate it has a curve it&#8217;s like a crescent moon kind of</p>



<p class="wp-block-paragraph">it still takes two inputs so I&#8217;m gonna do an input here and an input here and</p>



<p class="wp-block-paragraph">it still has one output and so if we&#8217;re just gonna give it a zero and a zero it&#8217;s</p>



<p class="wp-block-paragraph">give it a zero and a zero it&#8217;s going to output zero for us if we give it a zero</p>



<p class="wp-block-paragraph">and a one it&#8217;s going to output a one if we give it a one and a zero it&#8217;ll still</p>



<p class="wp-block-paragraph">output a one if we give it a one and a one it&#8217;ll still output a one okay that</p>



<p class="wp-block-paragraph">was pretty easy let&#8217;s look at exclusive or so XOR XOR the XOR gate looks like</p>



<p class="wp-block-paragraph">like the ore gate so i&#8217;m going to start by trying to draw an ore gate as best i can</p>



<p class="wp-block-paragraph">which is not good oh god let me start over on that one let me try one more time and then i&#8217;ll just</p>



<p class="wp-block-paragraph">give up okay do this and then i&#8217;ll say okay that was good enough and then it has another line right</p>



<p class="wp-block-paragraph">here the line is supposed to be parallel to the uh the crescent moon you know the curved side but</p>



<p class="wp-block-paragraph">and that way it sort of looks like the inputs are passing through</p>



<p class="wp-block-paragraph">like the first line before they touch the actual ridge.</p>



<p class="wp-block-paragraph">So that&#8217;s an exclusive or it also outputs one bit.</p>



<p class="wp-block-paragraph">So just practicing, we&#8217;ll give it two zeros.</p>



<p class="wp-block-paragraph">It&#8217;s going to output a zero because there&#8217;s no or involved in two zeros</p>



<p class="wp-block-paragraph">or I guess there&#8217;s no orness to the two zeros.</p>



<p class="wp-block-paragraph">If we give it a zero and a one, then that&#8217;s going to output a one</p>



<p class="wp-block-paragraph">one input is a one if we give it a one and a zero same thing looks good because</p>



<p class="wp-block-paragraph">one input was a one but then once we get to two inputs then it&#8217;s going to output</p>



<p class="wp-block-paragraph">a zero because the exclusive or demands that only one of the bits is a one and</p>



<p class="wp-block-paragraph">actually exactly one of the bits is a one to produce a one okay so then the</p>



<p class="wp-block-paragraph">next thing that I can show you is a knot gate it&#8217;s sort of like a little triangle</p>



<p class="wp-block-paragraph">are different drawing styles it takes only one input and then there&#8217;s like a little circle up</p>



<p class="wp-block-paragraph">here on top and then it outputs at the top and so if we give it a zero it&#8217;s going to output a one</p>



<p class="wp-block-paragraph">i guess i could draw it a second time since there&#8217;s only you know two things we can we can input to it</p>



<p class="wp-block-paragraph">it&#8217;s going to give us a zero if we inputted a one into it so it just reverts it&#8217;s an inverter</p>



<p class="wp-block-paragraph">helps you understand the basics of these types of gates. Now I&#8217;m going to try to make a bunch of</p>



<p class="wp-block-paragraph">them see if I can come up with something interesting on the fly. I had problems with</p>



<p class="wp-block-paragraph">the drawing system on my other computer so I didn&#8217;t really prepare an example. Hopefully this</p>



<p class="wp-block-paragraph">is good you never know. I&#8217;m just going to draw an AND gate here and I&#8217;ll say that it takes two</p>



<p class="wp-block-paragraph">inputs because that&#8217;s what it does and then right next to it maybe I&#8217;ll do an exclusive OR so I&#8217;ll</p>



<p class="wp-block-paragraph">like an OR gate here, and then I&#8217;ll do the exclusive OR part of it, and I&#8217;ll give it</p>



<p class="wp-block-paragraph">two inputs because that&#8217;s what they take.</p>



<p class="wp-block-paragraph">And then next to that, maybe I&#8217;ll just do a regular OR.</p>



<p class="wp-block-paragraph">We&#8217;ll say OR, just like that.</p>



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



<p class="wp-block-paragraph">Try one more time.</p>



<p class="wp-block-paragraph">Just do this, and then say this.</p>



<p class="wp-block-paragraph">Okay, that&#8217;s acceptable, sort of.</p>



<p class="wp-block-paragraph">We&#8217;ll do two more inputs there.</p>



<p class="wp-block-paragraph">And what else can I do?</p>



<p class="wp-block-paragraph">What else can I do?</p>



<p class="wp-block-paragraph">Should I do another exclusive or or an and?</p>



<p class="wp-block-paragraph">What do you think?</p>



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



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



<p class="wp-block-paragraph">I&#8217;m going to do an and right here.</p>



<p class="wp-block-paragraph">So I&#8217;m kind of repeating one of the gates.</p>



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



<p class="wp-block-paragraph">And or X or not.</p>



<p class="wp-block-paragraph">Yeah, that&#8217;s all I wanted to talk about.</p>



<p class="wp-block-paragraph">Okay, so now we can combine them because remember these have an output.</p>



<p class="wp-block-paragraph">But if we sort of use the outputs of two of the gates as input for another gate,</p>



<p class="wp-block-paragraph">then we can you can we can sort of like chain uh our circuits to make something a little bit more</p>



<p class="wp-block-paragraph">interesting so maybe here i&#8217;ll do an and i&#8217;ll say this is an and gate oh god that&#8217;s awful</p>



<p class="wp-block-paragraph">one more time okay my text-to-speech engine who i&#8217;ve given the personality of mary poppins</p>



<p class="wp-block-paragraph">is telling me that a door is open so i&#8217;ve got to close the door after this video anyway</p>



<p class="wp-block-paragraph">video anyway um yeah I have like an LLM server uh in the other room and so now my home assistant</p>



<p class="wp-block-paragraph">is a little bit smarter and sometimes she messes with me that&#8217;s a story for another video</p>



<p class="wp-block-paragraph">so I&#8217;m combining the output of both of those gates and sticking them into an and</p>



<p class="wp-block-paragraph">and then I can do the same thing here I think I drew those I think I drew it like way too high</p>



<p class="wp-block-paragraph">I&#8217;m gonna run out of room let me try one more time put that there we&#8217;ll do an and gate</p>



<p class="wp-block-paragraph">gate like that and then I&#8217;ll just maybe curve the wires so it seems like uh it makes more sense okay</p>



<p class="wp-block-paragraph">and then maybe over here I&#8217;ll do uh I don&#8217;t know maybe this should be an or I&#8217;ll do an or gate</p>



<p class="wp-block-paragraph">like that and then the inputs from the other ones go into the or gate</p>



<p class="wp-block-paragraph">then these two can combine to one more so maybe I&#8217;ll do exclusive or</p>



<p class="wp-block-paragraph">or I guess I&#8217;ll just put an or gate here and then I will that&#8217;s not that&#8217;s not</p>



<p class="wp-block-paragraph">curvy enough is it I like my Alex might I like my XOR gates nice and curvy so</p>



<p class="wp-block-paragraph">we&#8217;ll do this and then I&#8217;ll put another line under it and then we&#8217;ll connect</p>



<p class="wp-block-paragraph">these two so we&#8217;ll do this okay so then finally we have like one bit that&#8217;s</p>



<p class="wp-block-paragraph">one bit that&#8217;s going to come out at the top let&#8217;s use the knot gate might as well so i&#8217;m going to</p>



<p class="wp-block-paragraph">connect this to a knot gate and put a little circle on top of it and then it will give us our</p>



<p class="wp-block-paragraph">final output and maybe i&#8217;ll stick it here in green or something like that okay so there&#8217;s lots of</p>



<p class="wp-block-paragraph">different uh input output combinations we could use uh let&#8217;s see for every input we have that&#8217;s</p>



<p class="wp-block-paragraph">one bit so one two three four five six seven eight that&#8217;s eight bits that means i could draw out</p>



<p class="wp-block-paragraph">256 possible input combinations, which I&#8217;m definitely not going to do in this video.</p>



<p class="wp-block-paragraph">But let&#8217;s just do some random stuff.</p>



<p class="wp-block-paragraph">Let&#8217;s start off with zeros just for fun.</p>



<p class="wp-block-paragraph">So we&#8217;ll do a bunch of zeros here.</p>



<p class="wp-block-paragraph">So if you sort of look at this diagram, we go, all right, what was that?</p>



<p class="wp-block-paragraph">This and here, there&#8217;s two zeros.</p>



<p class="wp-block-paragraph">It&#8217;s going to produce a one.</p>



<p class="wp-block-paragraph">So I&#8217;m just going to put a one right here to remind me that a one is going to be the</p>



<p class="wp-block-paragraph">output of that gate.</p>



<p class="wp-block-paragraph">the OR gate here is going to also output a what am I doing why did I put a one a zero because zero</p>



<p class="wp-block-paragraph">and zero is zero and then zero or zero is also zero so this is going to output a zero and then</p>



<p class="wp-block-paragraph">this exclusive OR is also going to output a zero and then the end is zero so I just have zeros at</p>



<p class="wp-block-paragraph">the next level then we look at the inputs here to this and that&#8217;s obviously going to be zero and</p>



<p class="wp-block-paragraph">then we look at the OR here that&#8217;s obviously going to be zero and then those two go into the gate</p>



<p class="wp-block-paragraph">that&#8217;s a little bit higher and it&#8217;s going to output a zero because exclusive</p>



<p class="wp-block-paragraph">or needs at least, you know, it needs exactly one, uh, one.</p>



<p class="wp-block-paragraph">So it kind of feels like it&#8217;s going to be a zero for the output, right?</p>



<p class="wp-block-paragraph">Uh, you&#8217;d be wrong if you thought that because the knot is going to invert it.</p>



<p class="wp-block-paragraph">The knot is going to take that zero and flip it to a one.</p>



<p class="wp-block-paragraph">So if we do all zeros, the answer is actually going to be a one.</p>



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



<p class="wp-block-paragraph">Let&#8217;s reset this and try again.</p>



<p class="wp-block-paragraph">So I&#8217;m going to just get rid of these greens here.</p>



<p class="wp-block-paragraph">and then I&#8217;m going to do, maybe I should write the inputs in red so they&#8217;re more fun,</p>



<p class="wp-block-paragraph">so they don&#8217;t feel like they&#8217;re blending too much in with the actual diagram.</p>



<p class="wp-block-paragraph">Okay, so now I&#8217;m going to, let&#8217;s try all ones. Let&#8217;s see what happens if we do all ones.</p>



<p class="wp-block-paragraph">So I&#8217;m going to do ones on every input. One, one, one, one, one, one, one. And so</p>



<p class="wp-block-paragraph">if we look at this AND gate, it&#8217;s going to output a one because, well, a one and one is a one.</p>



<p class="wp-block-paragraph">one is a one the or gate same thing because a one or one is a one and then do the same thing down</p>



<p class="wp-block-paragraph">here for this and and then the exclusive or that&#8217;s going to be a zero because it wants exactly one</p>



<p class="wp-block-paragraph">bit to be a one not both so it&#8217;s a little bit more interesting and then we go up one level this and</p>



<p class="wp-block-paragraph">gate is going to output a zero because it wanted both of those uh inputs to be a one for it to</p>



<p class="wp-block-paragraph">output a one and then for the or it&#8217;s also going to output a well it&#8217;s going to output a one again</p>



<p class="wp-block-paragraph">both of those are ones and then if we look at the exclusive or oh that&#8217;s going to output a one this</p>



<p class="wp-block-paragraph">time because exactly one of the inputs is a one then the not is going to invert it so the final</p>



<p class="wp-block-paragraph">answer is going to be zero for this whole giant thing i want to say make sense and wait for</p>



<p class="wp-block-paragraph">questions but i guess i can&#8217;t so let&#8217;s try another example i&#8217;m going to do maybe two examples with</p>



<p class="wp-block-paragraph">totally random numbers and then i&#8217;m going to show you how to write a truth table that might help you</p>



<p class="wp-block-paragraph">might help you work this out on paper or like a like a notepad if you don&#8217;t really want to draw</p>



<p class="wp-block-paragraph">so let&#8217;s see um uh i guess i&#8217;m gonna like maybe take some of these and turn these into zeros</p>



<p class="wp-block-paragraph">let&#8217;s see get rid of that make that a zero maybe like i don&#8217;t know i feel like i&#8217;m not random</p>



<p class="wp-block-paragraph">enough okay one zero and then like a maybe like a zero here how about like a one there and a zero</p>



<p class="wp-block-paragraph">How about like a one there and a zero there?</p>



<p class="wp-block-paragraph">Just one, zero, one, zero, oh, one, oh, one.</p>



<p class="wp-block-paragraph">That&#8217;s too much of a pattern.</p>



<p class="wp-block-paragraph">Let me do, let me do a one, oh here, or a one and a one.</p>



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



<p class="wp-block-paragraph">That feels more random to me.</p>



<p class="wp-block-paragraph">So looking at the AND gate, that&#8217;s going to output a zero.</p>



<p class="wp-block-paragraph">The OR gate is going to output a one.</p>



<p class="wp-block-paragraph">The exclusive OR is going to output a zero.</p>



<p class="wp-block-paragraph">The AND is going to output a zero.</p>



<p class="wp-block-paragraph">So we just got a one right there.</p>



<p class="wp-block-paragraph">So this AND is going to output a zero again.</p>



<p class="wp-block-paragraph">This OR is going to output a one.</p>



<p class="wp-block-paragraph">And then the exclusive OR, it&#8217;s got enough to output a one.</p>



<p class="wp-block-paragraph">it&#8217;s got enough to output a one so that&#8217;s nice and then its final output is going to be</p>



<p class="wp-block-paragraph">a zero because we had to not that one nice okay let&#8217;s just i don&#8217;t know change a couple random</p>



<p class="wp-block-paragraph">bits i&#8217;m going to change this well let me erase first and then i&#8217;m going to start changing random</p>



<p class="wp-block-paragraph">bits i don&#8217;t even remember what that last bit was anymore i&#8217;m going to pretend it was a one</p>



<p class="wp-block-paragraph">and then i&#8217;m going to change it to a zero and then i&#8217;m going to change this zero to a one</p>



<p class="wp-block-paragraph">change this one to a zero and then I&#8217;ll change this this zero to a one not like exactly random</p>



<p class="wp-block-paragraph">it&#8217;s human random sort of so let&#8217;s look at this the and is going to output a one and the exclusive</p>



<p class="wp-block-paragraph">or is going to do a one and then the or is going to do a one and then the and is going to do zero</p>



<p class="wp-block-paragraph">one and one zero okay I think I did it right so the or is going to do a one and then I think</p>



<p class="wp-block-paragraph">what&#8217;s happening is I gotta adjust my penmanship style I still have to like lift up sooner so it</p>



<p class="wp-block-paragraph">doesn&#8217;t change colors so then the end it&#8217;s going to output a one and then this exclusive or it&#8217;s</p>



<p class="wp-block-paragraph">going to output a zero because it wants only one bit one input to be a one and then the not is</p>



<p class="wp-block-paragraph">Okay, let&#8217;s look at the idea of using a truth table to make this a little bit easier to</p>



<p class="wp-block-paragraph">solve if you&#8217;re just kind of doing this without drawing.</p>



<p class="wp-block-paragraph">So I&#8217;m not going to clear this just yet.</p>



<p class="wp-block-paragraph">I might have to clear it in a second.</p>



<p class="wp-block-paragraph">The first thing that you should do when you&#8217;re making a truth table is, you know, I mean,</p>



<p class="wp-block-paragraph">I guess you can style this however you want, but you kind of have to think of this hierarchically.</p>



<p class="wp-block-paragraph">Like what&#8217;s the easiest thing to do?</p>



<p class="wp-block-paragraph">You don&#8217;t want to start computing the thing at the very top because that depends on a</p>



<p class="wp-block-paragraph">lot of other stuff that&#8217;s at the bottom.</p>



<p class="wp-block-paragraph">So instead I&#8217;m going to look at the very bottom row of inputs because they&#8217;re the easiest to calculate.</p>



<p class="wp-block-paragraph">So I&#8217;m going to do and, I&#8217;m going to say something and something.</p>



<p class="wp-block-paragraph">I guess I&#8217;m just going to put and by itself.</p>



<p class="wp-block-paragraph">Maybe I&#8217;ll put one for input.</p>



<p class="wp-block-paragraph">So for the inputs, I&#8217;ll just do the bits here.</p>



<p class="wp-block-paragraph">0 1 1 no okay let&#8217;s just use two inputs only because we&#8217;re looking at the lowest level here</p>



<p class="wp-block-paragraph">yeah and we&#8217;ll make maybe like a separate row or separate table for that so we just have two</p>



<p class="wp-block-paragraph">inputs per gate on the bottom row and so for the end it&#8217;s going to be a one right then for the 0 1</p>



<p class="wp-block-paragraph">should just do this in numeric order. I&#8217;ll just do every possible combo because we don&#8217;t have that</p>



<p class="wp-block-paragraph">many numbers. So we have four combos. This is like zero, one, two, three. So from zero to three or</p>



<p class="wp-block-paragraph">four possible combos. And then the end is going to be a zero here and a zero there and a zero there.</p>



<p class="wp-block-paragraph">So that&#8217;s a truth table that just handles that first gate. So then I&#8217;m just going to, you know,</p>



<p class="wp-block-paragraph">write, I mean, you could make another truth table for this, but I&#8217;m going to try to write this in a</p>



<p class="wp-block-paragraph">I&#8217;m going to try to write this in a more compact way.</p>



<p class="wp-block-paragraph">I&#8217;m going to say the second column is the result of ending.</p>



<p class="wp-block-paragraph">The next column is the result of oaring.</p>



<p class="wp-block-paragraph">And then the last column is the result of,</p>



<p class="wp-block-paragraph">maybe second to last is the result of an XOR.</p>



<p class="wp-block-paragraph">And then maybe I&#8217;ll make another table for nodding.</p>



<p class="wp-block-paragraph">So what is the result of an OR here?</p>



<p class="wp-block-paragraph">It&#8217;s going to be a, whoops, a zero.</p>



<p class="wp-block-paragraph">The OR here is going to be a one.</p>



<p class="wp-block-paragraph">So when you start to make these tables,</p>



<p class="wp-block-paragraph">it just makes it a little bit easier to work your way up because when it gets time to let&#8217;s say the</p>



<p class="wp-block-paragraph">not you don&#8217;t have to compute all the other things because they&#8217;re already computed in the table so</p>



<p class="wp-block-paragraph">we got the or which i should have probably done first because the second gate was an xor i should</p>



<p class="wp-block-paragraph">have done that maybe third i don&#8217;t know i&#8217;m going to leave it as and and or right now and then we&#8217;re</p>



<p class="wp-block-paragraph">going to do xor so xor is basically if exactly one bit is a one will output a one so that&#8217;s a one</p>



<p class="wp-block-paragraph">so that&#8217;s a one there and then a one there and then a zero there okay so we&#8217;ve got the basics</p>



<p class="wp-block-paragraph">and if you think about it that&#8217;s the whole bottom row right so if we&#8217;re just sort of looking at</p>



<p class="wp-block-paragraph">let&#8217;s say the the third gate right here then uh we just have to look at input one one for the or</p>



<p class="wp-block-paragraph">and then that&#8217;s this right here right there so that tells us what the answer would be truth table</p>



<p class="wp-block-paragraph">for input zero one we just have to go all right zero one xor the output should be a one</p>



<p class="wp-block-paragraph">and we can double check ourselves because it&#8217;s really really easy to make mistakes i&#8217;m sure</p>



<p class="wp-block-paragraph">there&#8217;s a chance that i have or will make a mistake pretty soon</p>



<p class="wp-block-paragraph">so we did and or an xor let&#8217;s do maybe just one for the knot just to remind ourselves of what it is</p>



<p class="wp-block-paragraph">and i&#8217;ll just say not and so we can only do two different inputs on the uh on the knot so i&#8217;m</p>



<p class="wp-block-paragraph">so I&#8217;m going to go maybe a zero and then a one right here and then the not is going to say we</p>



<p class="wp-block-paragraph">have a one there and a zero there okay so now we can get a little bit more complicated</p>



<p class="wp-block-paragraph">by combining these terms so for the input now we could do</p>



<p class="wp-block-paragraph">we could do uh let&#8217;s say two gates at a time so we&#8217;ll do the input here and we&#8217;ll say the input</p>



<p class="wp-block-paragraph">1, 0, 1.</p>



<p class="wp-block-paragraph">And so when we not, when we not the, well, when we do an and for the 1, 1, we can end</p>



<p class="wp-block-paragraph">up with a 1.</p>



<p class="wp-block-paragraph">And then when we do an XOR on the 0, 1, then this is not the best truth table, to be honest.</p>



<p class="wp-block-paragraph">I&#8217;m just trying to I&#8217;m just trying to do it the XOR is going to be a one so now we kind of have</p>



<p class="wp-block-paragraph">the results written down here let&#8217;s do another little table and you know the way these tables</p>



<p class="wp-block-paragraph">work is you kind of want to put every possible combination of inputs there but that alone is</p>



<p class="wp-block-paragraph">going to be so many combinations I don&#8217;t want to write it all down and by the time we get to eight</p>



<p class="wp-block-paragraph">bits it&#8217;s going to be like in the 200s so if we just look at the next pair of gates we&#8217;ll say</p>



<p class="wp-block-paragraph">gates will say one one zero zero and the first thing is an or for the one one and</p>



<p class="wp-block-paragraph">then the next thing is an and for the zero zero and so I can just write this</p>



<p class="wp-block-paragraph">down and go all right the or is going to be a one and the end is going to be a</p>



<p class="wp-block-paragraph">zero okay so then I can do another level I&#8217;ve pretty much just handled you know</p>



<p class="wp-block-paragraph">the bottom row here and again each table is supposed to be filled out for every</p>



<p class="wp-block-paragraph">combination of inputs but I can now just kind of move on to the next row I can say</p>



<p class="wp-block-paragraph">what is the result of inputting a one and a one you could do that but it might be a little bit</p>



<p class="wp-block-paragraph">better and closer to some other places that might want you to input this sort of thing</p>



<p class="wp-block-paragraph">to write down what is the result of the or what is the what are the two gates that are giving you</p>



<p class="wp-block-paragraph">Okay, so the first input on the very bottom left, that&#8217;s an and, right?</p>



<p class="wp-block-paragraph">And then the next input on the bottom row is an XOR.</p>



<p class="wp-block-paragraph">And if we&#8217;re trying to figure out, you know, how are we combining those?</p>



<p class="wp-block-paragraph">We could say and XOR, or we can do, you know, two ampersands.</p>



<p class="wp-block-paragraph">I guess I&#8217;m going to do and XOR, just to keep it in plain English as much as I possibly can.</p>



<p class="wp-block-paragraph">So basically, this is going to have, you know, one result.</p>



<p class="wp-block-paragraph">this is going to have, you know, one result, you know, one bit result and its input is going to be</p>



<p class="wp-block-paragraph">a one, one, zero, one. And so maybe I should do another row here. We can say the end</p>



<p class="wp-block-paragraph">for the end is going to, for one, one is going to be that. And the XOR is going to, well,</p>



<p class="wp-block-paragraph">I already wrote that down in the table. Okay. I&#8217;m just going to, I&#8217;m just going to clean it up</p>



<p class="wp-block-paragraph">because you know, it&#8217;s really good in these truth tables. If you write down all</p>



<p class="wp-block-paragraph">truth tables if you write down all of the numbers, but I&#8217;m just going to do it this.</p>



<p class="wp-block-paragraph">I&#8217;m just going to do it this.</p>



<p class="wp-block-paragraph">Maybe we can visually see that there&#8217;s a one one going into the first end and then a zero</p>



<p class="wp-block-paragraph">one going into the second gate, which is an XOR.</p>



<p class="wp-block-paragraph">I think maybe that&#8217;s acceptable.</p>



<p class="wp-block-paragraph">So the result of that, if we just sort of look up at this table here, we have, you know,</p>



<p class="wp-block-paragraph">what is the end and what is the OR?</p>



<p class="wp-block-paragraph">It&#8217;s a one and a one.</p>



<p class="wp-block-paragraph">So if we end those two together, that should be a one.</p>



<p class="wp-block-paragraph">that should be a one so that means if we end the and against an xor then that&#8217;s the result that we</p>



<p class="wp-block-paragraph">get and then we&#8217;ll make another little table here for the next layer of inputs so i&#8217;ll just do this</p>



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



<p class="wp-block-paragraph">or and then the operator that combines them is an or and then on the right side it&#8217;s an and</p>



<p class="wp-block-paragraph">The input to both of those is going to be a one, one, zero, zero.</p>



<p class="wp-block-paragraph">And again, you should make another row for every possible combination of inputs.</p>



<p class="wp-block-paragraph">That would be a really smart idea.</p>



<p class="wp-block-paragraph">So then I will say that, uh, the, or in the end for a one, one and a zero,</p>



<p class="wp-block-paragraph">zero is this because we already wrote that down in the truth table.</p>



<p class="wp-block-paragraph">So really we&#8217;re going to be looking at inputs of one and zero.</p>



<p class="wp-block-paragraph">So that means, uh, if we&#8217;re applying an, or to that,</p>



<p class="wp-block-paragraph">applying an or to that, the final result should actually be one.</p>



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



<p class="wp-block-paragraph">So now we&#8217;ve got that second row.</p>



<p class="wp-block-paragraph">We just have to look at the second to the last row.</p>



<p class="wp-block-paragraph">So I&#8217;m going to go input for an X or of something else.</p>



<p class="wp-block-paragraph">And the X or is going to be, oh gosh.</p>



<p class="wp-block-paragraph">of an and</p>



<p class="wp-block-paragraph">well xor let&#8217;s put that in the middle let&#8217;s say and on the left and or on the right and then we&#8217;ll</p>



<p class="wp-block-paragraph">do an xor against them maybe you could put the parentheses on the other ones i don&#8217;t know i&#8217;m</p>



<p class="wp-block-paragraph">struggling with notation clearly right now but so we say and exclusive or with the or but then what</p>



<p class="wp-block-paragraph">Let&#8217;s put some more parentheses around it and we&#8217;ll say the and anded with an X or.</p>



<p class="wp-block-paragraph">Now we&#8217;re running out of room here.</p>



<p class="wp-block-paragraph">Can I get this like at the top maybe more?</p>



<p class="wp-block-paragraph">How about that?</p>



<p class="wp-block-paragraph">Okay, that&#8217;s a little bit better.</p>



<p class="wp-block-paragraph">So we have and being anded against an X or and then I put parentheses around that.</p>



<p class="wp-block-paragraph">There is a, there are special symbols you can use for this to make it more clear, but</p>



<p class="wp-block-paragraph">for this to make it more clear, but I&#8217;m not really trying to explain that right now.</p>



<p class="wp-block-paragraph">I just want you to see how the gates work.</p>



<p class="wp-block-paragraph">So we have, then the next two operators are in, oh gosh, yeah, we&#8217;re XORing against two</p>



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



<p class="wp-block-paragraph">So on the right side, the OR is ORing and OR, and then on its right side is the AND.</p>



<p class="wp-block-paragraph">So maybe I should do, I don&#8217;t know, I guess I&#8217;ll put parentheses right there to make it</p>



<p class="wp-block-paragraph">seem a little bit more clear.</p>



<p class="wp-block-paragraph">So now we&#8217;ve basically got an XOR and on its left side what&#8217;s happening underneath it is an</p>



<p class="wp-block-paragraph">anding which is the middle of an and on the left and an XOR on the right and then the</p>



<p class="wp-block-paragraph">the right side of the XOR is</p>



<p class="wp-block-paragraph">then the the right side of the XOR that was my LL I&#8217;m talking to me again</p>



<p class="wp-block-paragraph">on its left sorry it&#8217;s oaring on its on its right and then under the or it&#8217;s got an or on the left</p>



<p class="wp-block-paragraph">and an and on the right okay so we&#8217;ve written all these down in a way that&#8217;s okay not great but okay</p>



<p class="wp-block-paragraph">and i&#8217;m just going to do one one zero one one zero zero and then um i&#8217;ll make another video in the</p>



<p class="wp-block-paragraph">future about truth tables if everyone is super interested but that&#8217;s that&#8217;s not really what i</p>



<p class="wp-block-paragraph">I&#8217;ll make a video where the truth tables look proper and nice and full and all that stuff.</p>



<p class="wp-block-paragraph">So let&#8217;s do, what is the answer between the, oh, I have to scroll up a little bit to see that.</p>



<p class="wp-block-paragraph">So the left side of the XOR had an anding of an and and an XOR.</p>



<p class="wp-block-paragraph">So that was this right here.</p>



<p class="wp-block-paragraph">So the result of that was a one.</p>



<p class="wp-block-paragraph">and an end and that was a one so I have two ones basically so this XOR is going to output</p>



<p class="wp-block-paragraph">a zero because it&#8217;s it&#8217;s got two ones as an input or as inputs okay so then I guess I could copy</p>



<p class="wp-block-paragraph">paste this to make it a little bit easier on myself to write it all out and I could just say</p>



<p class="wp-block-paragraph">let&#8217;s not the whole entire thing to get to that highest level so I you know again I can just kind</p>



<p class="wp-block-paragraph">I, you know, again, I can just kind of keep the whole thing copy pasted and you know,</p>



<p class="wp-block-paragraph">the original input bit sequence, uh, I can just nod it.</p>



<p class="wp-block-paragraph">I can just change that zero to a one.</p>



<p class="wp-block-paragraph">So let&#8217;s just double check all our levels here to make sure that I did this correctly.</p>



<p class="wp-block-paragraph">You never know.</p>



<p class="wp-block-paragraph">So the input not, we know what that is for the end and the X or where&#8217;s the end and the</p>



<p class="wp-block-paragraph">X or, okay.</p>



<p class="wp-block-paragraph">So bottom left.</p>



<p class="wp-block-paragraph">What did I do wrong?</p>



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



<p class="wp-block-paragraph">Oh, that was, those were just the basics.</p>



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



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



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



<p class="wp-block-paragraph">Let me just double check the basics for the anding.</p>



<p class="wp-block-paragraph">Zero and zero and zero and then zero and then one and then one.</p>



<p class="wp-block-paragraph">And then here it should be a one and then the or should be one and should be zero.</p>



<p class="wp-block-paragraph">And here the and should be one and the or should be one.</p>



<p class="wp-block-paragraph">Okay, so I&#8217;ve got the basics, right?</p>



<p class="wp-block-paragraph">And then on line 15 here, we&#8217;re looking at</p>



<p class="wp-block-paragraph">an AND and an XOR. I guess I just did both of those at the same time. Okay, so the AND is a</p>



<p class="wp-block-paragraph">1 and the XOR is a 1. And then the next one, the OR and the AND, it&#8217;s a 1 and a 0. Okay.</p>



<p class="wp-block-paragraph">And then we&#8217;re ANDing the AND and the XOR. So that&#8217;s a 1, 1, 0, 1. The answer should be a 1.</p>



<p class="wp-block-paragraph">That matches the diagram. Okay. And then the ORing of the OR and the AND on the right side,</p>



<p class="wp-block-paragraph">the or and the and on the right side, that&#8217;s a one.</p>



<p class="wp-block-paragraph">So that matches the diagram.</p>



<p class="wp-block-paragraph">And then when we&#8217;re doing the whole thing, except for the knot,</p>



<p class="wp-block-paragraph">it should be a zero at the top.</p>



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



<p class="wp-block-paragraph">And then finally, when we invert it at the very top, it&#8217;s a one.</p>



<p class="wp-block-paragraph">So keep that in mind.</p>



<p class="wp-block-paragraph">You can build and build and build in a hierarchical manner.</p>



<p class="wp-block-paragraph">I mean, think if I started adding a bunch more stuff on top of this knot,</p>



<p class="wp-block-paragraph">maybe if there were a bunch of other circuits somewhere else</p>



<p class="wp-block-paragraph">and they were combining and combining like many layers.</p>



<p class="wp-block-paragraph">This is the sort of thing that could help you.</p>



<p class="wp-block-paragraph">Drawing, I think, is a little bit easier, but this could help you to just draw out a little table.</p>



<p class="wp-block-paragraph">And of course, you want to have a giant table showing all combinations somewhere,</p>



<p class="wp-block-paragraph">just to make sure that you can just look it up quickly.</p>



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



<p class="wp-block-paragraph">Okay, so I think this is all I wanted to talk about.</p>



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



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



<p class="wp-block-paragraph">So this is all I wanted to talk about for this video,</p>



<p class="wp-block-paragraph">about logical gates and the basics and kind of helping yourself with a little bit of a table.</p>



<p class="wp-block-paragraph">yourself with a little bit of a table. In future videos, I&#8217;ll talk about a proper table, perhaps.</p>



<p class="wp-block-paragraph">And I hope you&#8217;ve learned a little bit and laughed a little bit at me struggling to do this on the</p>



<p class="wp-block-paragraph">fly without a pre-made example. And I hope you had a little bit of fun and learned a little bit</p>



<p class="wp-block-paragraph">of stuff. And I&#8217;ll see you in the next video. Thanks for watching. Hey, everybody. Thanks for</p>



<p class="wp-block-paragraph">watching this video again from the bottom of my heart. I really appreciate it. I do hope you did</p>



<p class="wp-block-paragraph">If you could do me a please a small little favor</p>



<p class="wp-block-paragraph">Could you please subscribe and follow this channel or these videos or whatever it is you do on the current social media?</p>



<p class="wp-block-paragraph">It&#8217;s a 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 do me a kindness and and subscribe</p>



<p class="wp-block-paragraph">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 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 clarifications or errata or just future videos that you want to see,</p>



<p class="wp-block-paragraph">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?</p>



<p class="wp-block-paragraph">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.</p>



<p class="wp-block-paragraph">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.</p>



<p class="wp-block-paragraph">I would really appreciate it.</p>



<p class="wp-block-paragraph">So again, thank you so much for watching this video</p>



<p class="wp-block-paragraph">and enjoy the cool music</p>



<p class="wp-block-paragraph">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/logic-gates-crash-course-learn-and-or-xor-not-build-circuits/">Logic Gates Crash Course: Learn AND, OR, XOR, NOT &amp; Build Circuits</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/logic-gates-crash-course-learn-and-or-xor-not-build-circuits/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Master Bitwise Operators: OR, AND, NOT, XOR, NOR for Beginners</title>
		<link>https://www.NeuralLantern.com/master-bitwise-operators-or-and-not-xor-nor-for-beginners/</link>
					<comments>https://www.NeuralLantern.com/master-bitwise-operators-or-and-not-xor-nor-for-beginners/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Mon, 30 Jun 2025 06:15:25 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[AND operator]]></category>
		<category><![CDATA[binary logic]]></category>
		<category><![CDATA[binary operations]]></category>
		<category><![CDATA[bit manipulation]]></category>
		<category><![CDATA[bitwise operators]]></category>
		<category><![CDATA[C programming]]></category>
		<category><![CDATA[coding for beginners]]></category>
		<category><![CDATA[coding tips]]></category>
		<category><![CDATA[computer science basics]]></category>
		<category><![CDATA[NOR operator]]></category>
		<category><![CDATA[NOT operator]]></category>
		<category><![CDATA[OR operator]]></category>
		<category><![CDATA[programming tutorial]]></category>
		<category><![CDATA[tech tutorials]]></category>
		<category><![CDATA[XOR operator]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=173</guid>

					<description><![CDATA[<p>Learn bitwise operators (OR, AND, NOT, XOR, NOR) with clear examples. Perfect for beginners mastering binary logic in programming.</p>
<p>The post <a href="https://www.NeuralLantern.com/master-bitwise-operators-or-and-not-xor-nor-for-beginners/">Master Bitwise Operators: OR, AND, NOT, XOR, NOR 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-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="Master Bitwise Operators: OR, AND, NOT, XOR, NOR for Beginners" width="1380" height="776" src="https://www.youtube.com/embed/mL_wTRllqtc?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 understand bitwise operators? This video dives into OR, AND, NOT, XOR, and NOR with easy-to-follow examples. Learn how to use these operators for flags, masks, and more in programming. Perfect for beginners or anyone wanting to master binary logic in C or other languages. I break it down with real examples, a touch of humor, and no fluff. Subscribe for more coding tutorials, and check out my site for extra resources. Drop a comment with your questions or video ideas!</p>



<p class="wp-block-paragraph">Introduction to Logical Operators 00:00:00<br>Explanation of Bitwise OR 00:00:35<br>OR Operation Examples 00:01:01<br>Bitwise OR with Multiple Bits 00:02:12<br>Using OR for Flags 00:03:52<br>Introduction to Logical AND 00:08:06<br>AND Operation Examples 00:08:29<br>Using AND as a Mask 00:10:00<br>Checking Specific Bits with AND 00:11:17<br>Introduction to NOT Operation 00:13:36<br>Introduction to NOR Operation 00:14:38<br>Introduction to XOR Operation 00:16:37<br>XOR and Neural Networks 00:16:53<br>Conclusion and Call to Action 00:18:38</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 everybody! In this video I&#8217;m going to talk about basic logical operators such as OR and AND.</p>



<p class="wp-block-paragraph">Uh so let&#8217;s let&#8217;s dive right into it. What am I talking about with the OR and AND?</p>



<p class="wp-block-paragraph">Suppose for the sake of argument that this notepad is totally dark and I wanted it to be really light</p>



<p class="wp-block-paragraph">and then I have to go into the system settings to fix it. Sorry let me change my theme.</p>



<p class="wp-block-paragraph">How about that?</p>



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



<p class="wp-block-paragraph">So suppose for the sake of argument, we&#8217;ve got, you know, a couple of bits.</p>



<p class="wp-block-paragraph">These are going to be a bitwise operations for the most part.</p>



<p class="wp-block-paragraph">In other languages, sometimes we will say logical operator, but actually we&#8217;re just</p>



<p class="wp-block-paragraph">talking about values rather than bits individually.</p>



<p class="wp-block-paragraph">So these are bitwise operators.</p>



<p class="wp-block-paragraph">Imagine we have like a couple of bits.</p>



<p class="wp-block-paragraph">Remember the possible values for bits are just, you know, a zero and a one binary.</p>



<p class="wp-block-paragraph">So suppose we have a couple of values.</p>



<p class="wp-block-paragraph">values, let&#8217;s say we have a zero here and a one.</p>



<p class="wp-block-paragraph">So if I apply a logical or to the zero and the one,</p>



<p class="wp-block-paragraph">the result is going to be a one because either the first bit or the second bit are a one.</p>



<p class="wp-block-paragraph">You could also expand these operators to have multiple sets of bits,</p>



<p class="wp-block-paragraph">but we&#8217;re just going to do, you know, one set against another set.</p>



<p class="wp-block-paragraph">In this case, each set is just one bit long, but we&#8217;ll do, we&#8217;ll do a more complicated stuff in a minute.</p>



<p class="wp-block-paragraph">If I have a zero and a one, then the answer there is, well, let me just put or maybe.</p>



<p class="wp-block-paragraph">The answer is a one.</p>



<p class="wp-block-paragraph">I&#8217;ll put or maybe at the top, just like or to let you know that we&#8217;re doing ors here</p>



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



<p class="wp-block-paragraph">So if we have a zero and a one, the answer is going to be a one.</p>



<p class="wp-block-paragraph">If we have a one and a zero, the answer is going to be a one.</p>



<p class="wp-block-paragraph">Also, if we have two ones, which looks like an L over there, I got to work on my penmanship.</p>



<p class="wp-block-paragraph">Then the answer is also going to be a one.</p>



<p class="wp-block-paragraph">if either of the bits in question are a one then the answer should be a one. The only case with an</p>



<p class="wp-block-paragraph">OR that results in a zero is if both of the bits are zero because neither the first or the second</p>



<p class="wp-block-paragraph">are actually a one right so this is the basic idea of using an OR operator and you can also do this</p>



<p class="wp-block-paragraph">with multiple bits at the same time like for example we could say let&#8217;s take a bunch of random</p>



<p class="wp-block-paragraph">work on the it&#8217;s the pressure dude the l&#8217;s are driving me crazy okay oh my god okay so i do that</p>



<p class="wp-block-paragraph">and i let go okay i&#8217;m just going to put some random bits uh underneath the the first set of</p>



<p class="wp-block-paragraph">random bits put like a zero here and then like a one here maybe and we&#8217;ll say that we&#8217;re going to</p>



<p class="wp-block-paragraph">do a logical or just like you might think of doing a you know addition or subtraction we&#8217;ll just say</p>



<p class="wp-block-paragraph">you know, addition or subtraction. We&#8217;ll just say we&#8217;re going to or these two sets of bits.</p>



<p class="wp-block-paragraph">Actually, these are six on the top and six on the bottom. If I add two more, then it&#8217;ll be a nice</p>



<p class="wp-block-paragraph">little bite for the top and the bottom. So I&#8217;m just going to do that, you know, to have eight</p>



<p class="wp-block-paragraph">bits on the top and eight bits on the bottom. Okay. So if I just want to logically or two sets</p>



<p class="wp-block-paragraph">of bits, literally, I just have to do one pair of bits at a time. So a one or zero is just a one.</p>



<p class="wp-block-paragraph">One or zero is just a one, a zero or one is a one, a one or zero is a one, a zero or one</p>



<p class="wp-block-paragraph">is a one.</p>



<p class="wp-block-paragraph">And then these ones, everything is just a one.</p>



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



<p class="wp-block-paragraph">So that was too easy.</p>



<p class="wp-block-paragraph">Maybe if I, I don&#8217;t know, maybe if I change one of these ones to a zero, then we would</p>



<p class="wp-block-paragraph">actually be able to have a zero somewhere in here.</p>



<p class="wp-block-paragraph">So that&#8217;s a logical or a bitwise or operator or operation.</p>



<p class="wp-block-paragraph">So you can, you can kind of use this in various ways.</p>



<p class="wp-block-paragraph">can kind of use this in various ways i mean obviously if you want to manipulate some bits</p>



<p class="wp-block-paragraph">this can be pretty useful inside of the machine but there was kind of an old school way that</p>



<p class="wp-block-paragraph">people did flags with arguments they would basically say something like this they would go</p>



<p class="wp-block-paragraph">in their computer program they would say you know flag a name it something like turn on the display</p>



<p class="wp-block-paragraph">or enable caching or just like whatever right so we&#8217;ll just have a flag we&#8217;ll call it flag a</p>



<p class="wp-block-paragraph">that value is equal to a one and then maybe flag b its value is equal to a two and then flag c</p>



<p class="wp-block-paragraph">its value would be a four and then we basically just double the value of the flag and the reason</p>



<p class="wp-block-paragraph">for that c d e f i&#8217;ll just stop with f maybe oh wait that was supposed to be 16 and that&#8217;s 32.</p>



<p class="wp-block-paragraph">the reason for that is if you double the value of each flag so that uh</p>



<p class="wp-block-paragraph">and then you can do a bitwise or against all of these flags and sort of combine multiple flags.</p>



<p class="wp-block-paragraph">Because if you think about it, if we&#8217;re talking about binary,</p>



<p class="wp-block-paragraph">if we suppose this is just a regular eight bit number, then, you know, the first bit has a</p>



<p class="wp-block-paragraph">strength of one. If you&#8217;ve seen my other videos for converting between binary and hex,</p>



<p class="wp-block-paragraph">the second bit has a strength of two. The next bit has a strength of four and then eight and</p>



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



<p class="wp-block-paragraph">And so if you look at the flags,</p>



<p class="wp-block-paragraph">1, 2, 4, 8, 16, 32,</p>



<p class="wp-block-paragraph">they map to only one bit.</p>



<p class="wp-block-paragraph">It&#8217;s not going to be some kind of random pattern for these numbers.</p>



<p class="wp-block-paragraph">It&#8217;s literally going to be flag A is going to look like this.</p>



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



<p class="wp-block-paragraph">And then flag B is going to look like this.</p>



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



<p class="wp-block-paragraph">five, six, seven, eight. And flag D is going to look like this. Whoops. Let me make that green.</p>



<p class="wp-block-paragraph">Still getting used to this. Oh, sorry. C is the next one. One, two, three, four, five,</p>



<p class="wp-block-paragraph">six, seven, eight. Can you see the pattern here? Let me just do D and be done with it at this</p>



<p class="wp-block-paragraph">point. One, two, three, four, five, six, seven, eight. So because we&#8217;re increasing the value of</p>



<p class="wp-block-paragraph">the flags by a power of two, or by a power of two, they&#8217;ll always correspond to just one bit.</p>



<p class="wp-block-paragraph">they&#8217;ll always correspond to just one bit, which means if you apply a logical or operation,</p>



<p class="wp-block-paragraph">you can represent a bunch of different flags with just one number.</p>



<p class="wp-block-paragraph">Think about this.</p>



<p class="wp-block-paragraph">What if I wanted to have, oh, I don&#8217;t know.</p>



<p class="wp-block-paragraph">Let me erase this.</p>



<p class="wp-block-paragraph">What if I wanted to have some, let&#8217;s say I wanted flag A and flag D and flag F just for</p>



<p class="wp-block-paragraph">the sake of argument.</p>



<p class="wp-block-paragraph">Dang, this pen.</p>



<p class="wp-block-paragraph">It&#8217;s actually my fault completely, but I need to practice.</p>



<p class="wp-block-paragraph">but I need to practice F okay and DNF so that would basically be you know 1 2 3 4 5 6 7 8</p>



<p class="wp-block-paragraph">and then D would be the 8 so a 1 0 0 0 there and then a bunch of zeros elsewhere and then the F</p>



<p class="wp-block-paragraph">So if we did an OR between all of those, then the OR is just basically 00101001.</p>



<p class="wp-block-paragraph">And if you convert that from binary to decimal, what is that?</p>



<p class="wp-block-paragraph">That&#8217;s a 1248 plus 8 plus 1248 and then a 32.</p>



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



<p class="wp-block-paragraph">just write down the number 41 and if the programmer is smart enough to you know parse all the bits</p>



<p class="wp-block-paragraph">and everything then they&#8217;ll know that you have flags a and d and f set that&#8217;s not necessarily</p>



<p class="wp-block-paragraph">something that all the modern programs do anymore it was much more popular in the olden days but i</p>



<p class="wp-block-paragraph">think some people still kind of do it especially if they&#8217;re programming in c and other languages</p>



<p class="wp-block-paragraph">where they want speed it&#8217;s pretty fast to look at bits inside of the machine so keep that in mind</p>



<p class="wp-block-paragraph">Keep that in mind now we know how to do an OR operation and we know one reason that it might be useful and</p>



<p class="wp-block-paragraph">Yeah, okay. I&#8217;m gonna move on to the next operation</p>



<p class="wp-block-paragraph">So clearing the screen now</p>



<p class="wp-block-paragraph">Hello little doggy he barked and now he&#8217;s in the room</p>



<p class="wp-block-paragraph">Let&#8217;s do</p>



<p class="wp-block-paragraph">The logical AND operation okay, so suppose we have two bits here</p>



<p class="wp-block-paragraph">in a one only if both of the input bits are a one i&#8217;m gonna whoops i accidentally cleared the whole</p>



<p class="wp-block-paragraph">entire thing let me forget where my red pen is okay and okay so if we have a zero and a zero</p>



<p class="wp-block-paragraph">the result is zero because neither of those are a one if we have a zero and a one the result is</p>



<p class="wp-block-paragraph">still going to be zero because we need both bits to be a one to result in a one so then that means</p>



<p class="wp-block-paragraph">would also result in a zero. So you get a bunch of zeros until finally you have an input pattern</p>



<p class="wp-block-paragraph">that is just two ones. And then finally the result is one. So that&#8217;s a logical and.</p>



<p class="wp-block-paragraph">Let me do a quick example so we can and a bunch of bits together. I&#8217;m just going to do more</p>



<p class="wp-block-paragraph">random bit patterns. So there&#8217;s another L there. I&#8217;m cringing. I&#8217;m self-cringing. One, two, three,</p>



<p class="wp-block-paragraph">okay so then i&#8217;ll do like another one there and like a zero there and a zero maybe a couple of</p>



<p class="wp-block-paragraph">ones maybe three ones and then a zero and then one i guess and we&#8217;ll just say that we&#8217;re going</p>



<p class="wp-block-paragraph">to end those together so and oh man i&#8217;m mixing uppercase and lowercase like crazy</p>



<p class="wp-block-paragraph">so uh to end them together you know that bit position right here that&#8217;s going to be a one</p>



<p class="wp-block-paragraph">and then we have a zero because they don&#8217;t match they&#8217;re not both one and then we have another zero</p>



<p class="wp-block-paragraph">a one and then we have a zero and a zero and a zero and a one so this is a logical and you can</p>



<p class="wp-block-paragraph">use logical ands for a wide variety of things but one thing you can kind of do somewhat easily is to</p>



<p class="wp-block-paragraph">use one number as a mask against another number for example notice how uh suppose this was the</p>



<p class="wp-block-paragraph">input number let&#8217;s just say we have the input number up top and maybe you wanted to make sure</p>



<p class="wp-block-paragraph">because you&#8217;re you&#8217;re checking for those bits individually or maybe you want to just prevent</p>



<p class="wp-block-paragraph">the input from having certain bits on for some other reason well you can you can apply the mask</p>



<p class="wp-block-paragraph">as the second bit and use a logical and i&#8217;ll say mask here sorry you can apply a mask as the second</p>



<p class="wp-block-paragraph">bit pattern and notice how in the answer there are only ones where both you know the input and</p>



<p class="wp-block-paragraph">means if I wanted to just control only which ones are allowed I can use the mask notice how the mask</p>



<p class="wp-block-paragraph">has ones in these positions and there are definitely no zeros sorry there are definitely</p>



<p class="wp-block-paragraph">no ones in any position where a mask had a zero so the mask can kind of like you know mute or mask</p>



<p class="wp-block-paragraph">or control the input pattern if that makes sense hopefully another thing we could do if we wanted</p>



<p class="wp-block-paragraph">if one bit exists. Let me go ahead and clear this real fast. I&#8217;m going to just do maybe four</p>



<p class="wp-block-paragraph">bits this time. So we could obviously do an and against four zeros, and this would result in just,</p>



<p class="wp-block-paragraph">you know, a resulting pattern of zero. So this is not super useful. The result would just</p>



<p class="wp-block-paragraph">definitely be four zeros. But notice again how the second pattern is sort of controlling what&#8217;s</p>



<p class="wp-block-paragraph">allowed to go through from the first pattern. Suppose I wanted to check to see if that particular</p>



<p class="wp-block-paragraph">particular bit was on or off.</p>



<p class="wp-block-paragraph">All I have to do is mask it with a one in the correct pattern.</p>



<p class="wp-block-paragraph">So, you know, the second bit that I just wrote down on the bottom row,</p>



<p class="wp-block-paragraph">I just want to see if that second bit is on or off in the input pattern.</p>



<p class="wp-block-paragraph">I don&#8217;t care about any of the other bits.</p>



<p class="wp-block-paragraph">That means the result will be this.</p>



<p class="wp-block-paragraph">So now it&#8217;s much more easy for me to see if that bit is on.</p>



<p class="wp-block-paragraph">I could just compare the value of those bits to a regular integer.</p>



<p class="wp-block-paragraph">Like, for example, if we consider that this was the one and this was the two</p>



<p class="wp-block-paragraph">considered that this was the one and this was the two and this was the four or sorry four and then</p>



<p class="wp-block-paragraph">the eight I could just ask now if the final value equals two and then I would know if that bit was</p>



<p class="wp-block-paragraph">on or not in the original pattern and so if I wanted to check to see if this other you know</p>



<p class="wp-block-paragraph">bit was on I can move this over here and set that back to a zero so the resulting pattern would be</p>



<p class="wp-block-paragraph">zeros then I&#8217;d ask myself is the resulting value equal to four no it&#8217;s equal to zero and so then</p>



<p class="wp-block-paragraph">Another thing you can do that I&#8217;m going to talk about in a future video is just sort of shift the bits over.</p>



<p class="wp-block-paragraph">You could, instead of checking to see if the value was a 4 or like a direct integer,</p>



<p class="wp-block-paragraph">you could just sort of shift over a certain number of spots and then check to see if it was equal to 1 or 0.</p>



<p class="wp-block-paragraph">Let me put this 1 back over into its original position just so that we&#8217;ll have something that had a 1.</p>



<p class="wp-block-paragraph">is one from uh you know the right side if it&#8217;s one to the left from the right side</p>



<p class="wp-block-paragraph">then i could just shift all the bits one to the right and end up with a pattern that is zero zero</p>



<p class="wp-block-paragraph">zero one i&#8217;m not going to talk about bit shifting operations in this video but just know that you can</p>



<p class="wp-block-paragraph">and you&#8217;ll see more of it in a future video so then you know this is another way to check to</p>



<p class="wp-block-paragraph">see if a bit was on first you do a mask for that bit and then you shift bits and then you just</p>



<p class="wp-block-paragraph">check to see if the final value is a zero or one which may or may not feel easier than checking for</p>



<p class="wp-block-paragraph">or may not feel easier than checking for an actual integer in your program.</p>



<p class="wp-block-paragraph">Okay, so we&#8217;ve done OR and also AND. The next bit pattern is called a NOT, which is really easy.</p>



<p class="wp-block-paragraph">It&#8217;s literally just an inversion of the original bit pattern. So for the NOT, we don&#8217;t really take</p>



<p class="wp-block-paragraph">two bits against each other. We just take an input bit and we just invert it. We&#8217;ll just say</p>



<p class="wp-block-paragraph">So that&#8217;s a knot. Pretty easy. We could also knot, you know, a random bit pattern with Ls.</p>



<p class="wp-block-paragraph">So I swear, somebody&#8217;s going to show up and this is their first computer science video.</p>



<p class="wp-block-paragraph">They&#8217;re going to go tell their parents, hey, there&#8217;s Ls in computer science.</p>



<p class="wp-block-paragraph">So sorry. I&#8217;m so sorry. Okay. So I got four there. So if I knot those, then that&#8217;s pretty easy.</p>



<p class="wp-block-paragraph">It&#8217;s just going to be the opposite, you know, an inversion.</p>



<p class="wp-block-paragraph">you know, an inversion.</p>



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



<p class="wp-block-paragraph">Let me just double check that I did that correctly.</p>



<p class="wp-block-paragraph">Yeah, so that&#8217;s the knot pattern.</p>



<p class="wp-block-paragraph">No big deal.</p>



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



<p class="wp-block-paragraph">So then maybe the next thing that we can talk about is the nor,</p>



<p class="wp-block-paragraph">which just means not or.</p>



<p class="wp-block-paragraph">So let me draw that out real fast just to show you what I&#8217;m talking about.</p>



<p class="wp-block-paragraph">So if we do nor, pretty much you can imagine first taking the or and then knotting it.</p>



<p class="wp-block-paragraph">So inverting the or.</p>



<p class="wp-block-paragraph">the OR. So for example, if we have two bits here, actually, let me, let me do, let me do a</p>



<p class="wp-block-paragraph">sequential counter. Cause I think that&#8217;s more fun. I&#8217;m counting right now from one to a three</p>



<p class="wp-block-paragraph">or a actually, I do that in the last one. I started with zero. I hope let&#8217;s count from zero</p>



<p class="wp-block-paragraph">to three. So zero and then one and then two and then three. So I&#8217;m counting in binary.</p>



<p class="wp-block-paragraph">two input bits and we&#8217;re going to do a nor then the first thing we probably want to do is take</p>



<p class="wp-block-paragraph">the or operator so that would be a zero here i&#8217;ll just put or in parentheses just to let you know</p>



<p class="wp-block-paragraph">that this is kind of a nice first step you could memorize nor if you wanted to but i don&#8217;t i don&#8217;t</p>



<p class="wp-block-paragraph">really remember how to do it without doing these steps so uh it&#8217;s going to be ones for everything</p>



<p class="wp-block-paragraph">else because in the or you get a one if either of those is a one and then uh the next step is you</p>



<p class="wp-block-paragraph">the or i&#8217;ll just put nor here just to let you well just to let you know that you&#8217;re uh well i</p>



<p class="wp-block-paragraph">don&#8217;t know if i put nor then it kind of sounds like i&#8217;m norring that one bit doesn&#8217;t it so maybe</p>



<p class="wp-block-paragraph">here i&#8217;ll say uh not just to let you know that this is just one step against the previous bit</p>



<p class="wp-block-paragraph">so the knot is uh just going to be an inversion and so the nor of zero zero is one the nor of zero</p>



<p class="wp-block-paragraph">nor of 1 1 is 0 and that&#8217;s how you do a nor and all of these logical or bitwise</p>



<p class="wp-block-paragraph">operators can be used in circuits and circuit design and just you know other</p>



<p class="wp-block-paragraph">types of logical operations I&#8217;m gonna move on let&#8217;s see the next one is gonna</p>



<p class="wp-block-paragraph">be XOR that I wanted to talk about in this video so what is XOR it just means</p>



<p class="wp-block-paragraph">exclusive or so it&#8217;s a little bit more complicated than or this is actually a</p>



<p class="wp-block-paragraph">one because it has a history with neural networks. When you have a neural network that does not have</p>



<p class="wp-block-paragraph">more than one, or sorry, if you have a neural network that does not have any hidden layers,</p>



<p class="wp-block-paragraph">like if you just have an input layer and an output layer, then the neural network should</p>



<p class="wp-block-paragraph">actually not be able to solve XOR. It should not be able to learn it. You have to increase the</p>



<p class="wp-block-paragraph">topology of the neural network in some way, make it a little bit more complicated. For example,</p>



<p class="wp-block-paragraph">one or more middle layers between the input and the output layers. If you understand neural</p>



<p class="wp-block-paragraph">networks, it&#8217;s just kind of fun to know, oh, XOR stumps a shallow network and kind of starts to</p>



<p class="wp-block-paragraph">prove that deep networks might be a little bit smarter or deepish at least. Okay. So XOR,</p>



<p class="wp-block-paragraph">let&#8217;s start off by counting here. I&#8217;m going to do zero and zero, and then this is the number one,</p>



<p class="wp-block-paragraph">and this is the number two, and this is the number three. And exclusive OR just basically means</p>



<p class="wp-block-paragraph">just basically means an or but if both of the bits are one then it&#8217;s a zero so that means</p>



<p class="wp-block-paragraph">either of the bits can be a one to produce a one but it must be exclusive the bit that is a one</p>



<p class="wp-block-paragraph">can&#8217;t also be next to another bit that&#8217;s a one so let me show you so in is in a double zero</p>



<p class="wp-block-paragraph">the answer is just going to be a zero in a zero and one the answer is going to be a one in a one</p>



<p class="wp-block-paragraph">exclusive, the one is it has a, it has a buddy or a partner.</p>



<p class="wp-block-paragraph">It&#8217;s not an exclusive one.</p>



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



<p class="wp-block-paragraph">So that&#8217;s the XOR.</p>



<p class="wp-block-paragraph">I don&#8217;t know.</p>



<p class="wp-block-paragraph">You could put like a, a, a not on top of that or an and on top of that or whatever</p>



<p class="wp-block-paragraph">you wanted to do.</p>



<p class="wp-block-paragraph">And we can make stuff that&#8217;s a lot more complicated, but these are the basics of</p>



<p class="wp-block-paragraph">or and not XOR and NOR as bitwise operators.</p>



<p class="wp-block-paragraph">So thank you for watching this video.</p>



<p class="wp-block-paragraph">That&#8217;s all I have to say for now.</p>



<p class="wp-block-paragraph">See you in the next one.</p>



<p class="wp-block-paragraph">Hope you learned a little bit and had a little bit of fun.</p>



<p class="wp-block-paragraph">I&#8217;m out.</p>



<p class="wp-block-paragraph">social media website that you&#8217;re looking at right now it would really mean the world to me and it&#8217;ll</p>



<p class="wp-block-paragraph">help make more videos and grow this community so we&#8217;ll be able to do more videos longer videos</p>



<p class="wp-block-paragraph">better videos or just i&#8217;ll be able to keep making videos in general so please do do me a kindness</p>



<p class="wp-block-paragraph">and uh and subscribe you know sometimes i&#8217;m sleeping in the middle of the night and i just</p>



<p class="wp-block-paragraph">wake up because i know somebody subscribed or followed it just wakes me up and i get filled</p>



<p class="wp-block-paragraph">with joy that&#8217;s exactly what happens every single time so you could do it as a nice favor to me or</p>



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



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



<p class="wp-block-paragraph">happen also uh 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">this video and it&#8217;ll take you to my main website where you can just kind of like see all the videos</p>



<p class="wp-block-paragraph">i published and the services and tutorials and things that i offer and all that good stuff and</p>



<p class="wp-block-paragraph">if you have a suggestion for uh uh clarifications or errata or just future videos that you want to</p>



<p class="wp-block-paragraph">see please leave a comment or if you just want to say hey what&#8217;s up what&#8217;s going on you know</p>



<p class="wp-block-paragraph">just send me a comment whatever i also wake up for those in the middle of the night i get i wake up</p>



<p class="wp-block-paragraph">in a cold sweat and i&#8217;m like it would really it really mean the world to me i would really</p>



<p class="wp-block-paragraph">appreciate it so again thank you so much for watching this video and um enjoy the cool music</p>



<p class="wp-block-paragraph">the cool music 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/master-bitwise-operators-or-and-not-xor-nor-for-beginners/">Master Bitwise Operators: OR, AND, NOT, XOR, NOR for Beginners</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/master-bitwise-operators-or-and-not-xor-nor-for-beginners/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>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>
