<?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>IEEE 754 Archives - NeuralLantern.com</title>
	<atom:link href="https://www.NeuralLantern.com/tag/ieee-754/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.NeuralLantern.com/tag/ieee-754/</link>
	<description></description>
	<lastBuildDate>Sun, 25 May 2025 08:01:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.NeuralLantern.com/wp-content/uploads/2025/04/cropped-2025-04-04-Lantern-03-32x32.png</url>
	<title>IEEE 754 Archives - NeuralLantern.com</title>
	<link>https://www.NeuralLantern.com/tag/ieee-754/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Master IEEE 754 Floats: Binary to Decimal Guide</title>
		<link>https://www.NeuralLantern.com/master-ieee-754-floats-binary-to-decimal-guide/</link>
					<comments>https://www.NeuralLantern.com/master-ieee-754-floats-binary-to-decimal-guide/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Mon, 05 May 2025 01:50:17 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Conversions]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[32-bit float]]></category>
		<category><![CDATA[64-bit float]]></category>
		<category><![CDATA[binary fractions]]></category>
		<category><![CDATA[binary to decimal]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[CS tutorial]]></category>
		<category><![CDATA[decimal to binary]]></category>
		<category><![CDATA[exponent bias]]></category>
		<category><![CDATA[floating point numbers]]></category>
		<category><![CDATA[IEEE 754]]></category>
		<category><![CDATA[IEEE 754 explained]]></category>
		<category><![CDATA[number systems]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[scientific notation]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=101</guid>

					<description><![CDATA[<p>Learn IEEE 754 floating-point conversion! Step-by-step guide for 32-bit &#038; 64-bit floats, from decimal to binary. Perfect for CS students!</p>
<p>The post <a href="https://www.NeuralLantern.com/master-ieee-754-floats-binary-to-decimal-guide/">Master IEEE 754 Floats: Binary to Decimal Guide</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Master IEEE 754 Floats: Binary to Decimal Guide" width="1380" height="776" src="https://www.youtube.com/embed/pjDw2kBzSpI?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p>Hey there! Ready to crack the code on IEEE 754 floating-point numbers? In this video, I break down how to convert decimals to binary and back for 32-bit and 64-bit floats with clear, easy-to-follow steps. From scientific notation to biasing exponents, I’ve got you covered with examples (like 45.84375!). Perfect for computer science students, programmers, or anyone curious about how computers store fractions. Pause, rewind, and learn at your pace! Subscribe for more, check my other videos, and drop a comment with your thoughts!</p>



<p>Introduction to IEEE 754 00:00:00<br>Prerequisites for Understanding 00:01:03<br>Steps to Convert Decimal to IEEE 754 00:02:31<br>Bias and Exponent Explanation 00:03:17<br>32-bit Float Layout 00:04:09<br>Sign Bit and Fraction Bits 00:05:44<br>Example: Decimal to 32-bit Float 00:07:56<br>Converting 45.84375 to Binary 00:08:34<br>Scientific Notation for Binary 00:09:05<br>Biasing the Exponent 00:10:26<br>Placing Bits in Layout 00:11:17<br>Final 32-bit Float Representation 00:13:32<br>Example: IEEE 754 to Decimal 00:14:28<br>Extracting Sign, Exponent, Fraction 00:15:36<br>Unbiasing Exponent and Reconstructing 00:16:23<br>Converting Binary to Decimal 00:18:53<br>Introduction to 64-bit Floats 00:19:47<br>64-bit Float Layout and Bias 00:20:05<br>Example: 64-bit Float to Decimal 00:21:09<br>Processing 64-bit Float Bits 00:22:05<br>Reconstructing 64-bit Scientific Notation 00:23:26<br>Final Decimal Conversion for 64-bit 00:25:00<br>Conclusion and Recap 00:25:54<br>Call to Subscribe and Outro 00:26:36</p>



<p>Thanks for watching!</p>



<p>Find us on other social media here:</p>



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



<p>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>Hey there! Let&#8217;s talk about IEEE 754 floating point numbers stored inside of your machine.</p>



<p>What the heck am I even talking about? Well, uh, there&#8217;s a standard called IEEE 754 which governs</p>



<p>how floating point numbers are stored inside of your computer on x8664 machines. So, you know,</p>



<p>of watching this video you probably already know how to convert binary back and forth you know</p>



<p>between binary and decimal and hopefully you understand how to do binary with fractions</p>



<p>if you don&#8217;t i have other videos i&#8217;ll talk about that in a second and you also understand</p>



<p>that in the machine there is like a slightly different format that&#8217;s my doggy slightly</p>



<p>different format for storing signed integers in the machine okay so floating point numbers have</p>



<p>an even different uh format that we have to follow and the hardware is designed that way</p>



<p>hardware is designed that way so before we can really benefit you&#8217;re all gonna</p>



<p>see how bad I spell okay before we can benefit from this video your prerequisite</p>



<p>knowledge should be that for starters you should be able to convert back and</p>



<p>forth between binary and decimal including numbers with fractions so if</p>



<p>if you don&#8217;t know how to do that yet this video is is not for you just yet you</p>



<p>should go check out my other videos I explain in other videos exactly how to</p>



<p>do that go to the other videos come back and then check this one out after you</p>



<p>know how to convert back and forth between binary and decimal with</p>



<p>fractions the second thing you should know how to do before watching this</p>



<p>video is convert binary numbers with fractions to scientific notation and</p>



<p>and back again. Meaning you should understand scientific notation and you should also understand</p>



<p>how to take a binary number with a fraction and convert it to scientific notation and then</p>



<p>convert it or deconvert it back to like regular form. Again, I have another video for this,</p>



<p>so if you don&#8217;t know how to do that yet, you should probably pause this video and then go</p>



<p>Let&#8217;s see. For converting from a regular number to IEEE floating point number in the machine using just binary alone is the following.</p>



<p>So I&#8217;m going to say basic steps. Step one, convert the decimal number to binary if needed.</p>



<p>And I say if needed because I don&#8217;t know, maybe you started with a binary number so you don&#8217;t actually need to convert it.</p>



<p>it but I&#8217;m just going to assume that you have a decimal number so you&#8217;re going to convert it to</p>



<p>binary first then convert the binary number to scientific notation I don&#8217;t know if convert is</p>



<p>the right word here because we&#8217;re not actually changing the value of the number we&#8217;re just</p>



<p>changing the representation so convert it to a scientific notation form maybe would be better</p>



<p>step three we&#8217;ll add a bias to the exponents of the scientific notation form what do I mean by</p>



<p>notation form. What do I mean by that? You know, if you have like a binary number and it&#8217;s in</p>



<p>scientific notation format, it&#8217;s going to look like this. I liked when I&#8217;m doing IEEE 754,</p>



<p>I like to keep the right side of the number in decimal. I&#8217;m sorry if this confuses you, but</p>



<p>it&#8217;s not really necessary to convert this to binary when we&#8217;re just trying to convert back</p>



<p>and forth between IEEE. So I always say two to the something power rather than one zero to the</p>



<p>something power because I want to stay in decimal. So I&#8217;ll say, you know, two to the seventh power,</p>



<p>right? What this means is that seven is the exponent and I have to bias the exponent before</p>



<p>I put it into the machine. So maybe it&#8217;s worth understanding or maybe copy pasting right now</p>



<p>that the bias for 32-bit floating point numbers, I should probably, I&#8217;ll paste the whole thing here.</p>



<p>Okay. So here&#8217;s like the format for a 32-bit floating point number. We&#8217;re good about this</p>



<p>number. We&#8217;re good about this just for a second. The bias for 32-bit floating</p>



<p>point number in IEEE 754 is 127. So that means I pretty much have to just take</p>



<p>the number 7 and bias it by adding 127 to it. After I&#8217;ve done that I can convert</p>



<p>the biased exponent to unsigned binary whole number. To an unsigned binary whole</p>



<p>number. So step four here is just regular decimal to binary conversion. So I would take, you know,</p>



<p>seven plus 127. The result of that, which I think is like 134, maybe we&#8217;ll just be converted into</p>



<p>binary and unsigned binary integer, not two&#8217;s compliment or anything like that. Then step five</p>



<p>is respect the layout. So I just, I just copy pasted the layout up above and the layout is this.</p>



<p>you can see that here let me see if I just maybe paste this down at the bottom</p>



<p>you can see that we actually have 32 bits here if I count them for you real</p>



<p>fast we&#8217;ve got one for the sign and then we&#8217;ve got I can never remember this I</p>



<p>think it&#8217;s eight for the exponent one two three four five six seven eight got</p>



<p>eight bits for the exponent that means I&#8217;ve already used nine of 32 bits so</p>



<p>that means I should have like 23 bits here so one two three four five six seven</p>



<p>11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, just to double check.</p>



<p>So we know what the sine bit is.</p>



<p>Actually, we don&#8217;t yet know in this video.</p>



<p>So in this video, the sine bit, it&#8217;s always going to be a zero if the number is positive</p>



<p>and a one if the number is negative.</p>



<p>So that&#8217;s the sine bit.</p>



<p>The biased exponent bits go there.</p>



<p>And then these Fs, those are just the fractional bits.</p>



<p>just the, you know, like the mantissa or the mantissa part of the fraction. So imagine if we</p>



<p>have a number like this, all I&#8217;m saying is we would copy paste those numbers right here.</p>



<p>Notice how I&#8217;m ignoring that first one dot something, because when you put binary in</p>



<p>scientific notation, the first number is always going to be a one. So it can be assumed. There&#8217;s</p>



<p>no point in storing it inside the machine. And then if you don&#8217;t have enough digits to</p>



<p>you will literally just pad with zeros on the right side because padding with zeros on the right side of a fraction</p>



<p>doesn&#8217;t actually change the value. One, two, three, four.</p>



<p>If I put the zeros on the left side of the fraction, it would make the fractional part smaller and smaller.</p>



<p>So that would be bad. I don&#8217;t want to change the value.</p>



<p>And this is the opposite of how you pad a whole number.</p>



<p>If I put numbers on the left side of a whole number part, I&#8217;m not changing the value.</p>



<p>But if I put numbers on the right side of a whole number part,</p>



<p>which in this case would be the biased exponent, then I would be changing the value.</p>



<p>So we wouldn&#8217;t want to do that.</p>



<p>changing the value so we wouldn&#8217;t want to do that. Anyway I&#8217;m going to remove this and just stick</p>



<p>with step five so let&#8217;s see 5a is place the sine bits step 5b is and I&#8217;m going to do an example</p>



<p>for you don&#8217;t worry place the exponent bits and then 5c is place the fraction bits everything</p>



<p>the first one dot from scientific notation form.</p>



<p>Again, because the first one is implied, it will never be a zero if you&#8217;ve done it correctly.</p>



<p>If you end up with a binary number that looks like this in scientific notation, then you&#8217;ve</p>



<p>done something wrong because the first number is supposed to be a one.</p>



<p>Okay, so we have those basic steps.</p>



<p>And now let&#8217;s do an example.</p>



<p>1, 2, 3 example. Let&#8217;s convert decimal to IEEE 754 32-bit float format.</p>



<p>AKA single precision floating point number. Double precision floating point number is 64-bit.</p>



<p>We&#8217;ll do an example for that at the very end of this, but I&#8217;m just going to stick with 32 and do</p>



<p>number 45.84375, just double checking, and then we&#8217;ll convert to binary. Again, this knowledge</p>



<p>is contained in a different video. So if you don&#8217;t know how to do this yet, you&#8217;ll need to go see my</p>



<p>other video. And so you can see it&#8217;s, you know, 45.84375 in binary is just going to be this.</p>



<p>I&#8217;ve padded it with two zeros to the left just because, I don&#8217;t know, I have a habit of wanting</p>



<p>wanting everything to look like it&#8217;s inside of 8-bit chunks.</p>



<p>You can see there&#8217;s 8 bits here.</p>



<p>But really, I can just remove those first two numbers.</p>



<p>It doesn&#8217;t matter.</p>



<p>Convert the number to binary.</p>



<p>Then, I have to convert the binary number to scientific notation.</p>



<p>I&#8217;m going to put maybe pseudo-scientific notation</p>



<p>because I&#8217;m not going to convert the right part</p>



<p>where it&#8217;s the exponent into binary.</p>



<p>I&#8217;m going to keep it in decimal.</p>



<p>Just to clarify again,</p>



<p>convert a binary number to scientific notation and you were actually going to publish it somewhere</p>



<p>or give it to someone, then you should convert the right side. It&#8217;s just that I&#8217;m not going to</p>



<p>because I don&#8217;t really need to convert the right side. I&#8217;m not interested in having the whole</p>



<p>number in scientific notation in binary. I&#8217;m just interested in what the fractional bits are and</p>



<p>then what the exponent is going to do. Like how many positions to the left or right is it actually</p>



<p>going to move the decimal point? And that&#8217;s just going to be the number five, five times to the</p>



<p>five you know five times to the left or to the right so I&#8217;m gonna go pseudo</p>



<p>scientific notation you pretty much you know as I covered in the different video</p>



<p>all we&#8217;re gonna be doing is just moving the decimal point over one two three</p>



<p>four five until there&#8217;s a one in the leading spot and then account for it by</p>



<p>saying times two to the fifth power to say the number is a lot bigger than it</p>



<p>looks so that&#8217;s that and let&#8217;s see if there are any trailing zeros that&#8217;s</p>



<p>Let&#8217;s see if there are any trailing zeros, that&#8217;s okay on the right side of the fraction.</p>



<p>They don&#8217;t actually matter.</p>



<p>You can also just delete them if you want.</p>



<p>Then we need to bias the exponents.</p>



<p>So how do we bias the exponent?</p>



<p>The exponent is just the number five.</p>



<p>That&#8217;s see, I was telling you like I don&#8217;t really care to convert it to binary because</p>



<p>I&#8217;m just going to bias it first and then after that I&#8217;ll buy it or I&#8217;ll convert it to binary.</p>



<p>So biasing it is just basically adding the bias.</p>



<p>just to make sure that it&#8217;s on this page and it&#8217;s easy to see.</p>



<p>So I&#8217;ll do that.</p>



<p>So in the 32-bit float layout, the bias is 127.</p>



<p>So I&#8217;m going to add 127 to 5.</p>



<p>The final number is going to be 132.</p>



<p>So that&#8217;s the biased exponent now.</p>



<p>Then I convert the biased exponent to binary.</p>



<p>And that&#8217;s going to be this.</p>



<p>10000100.</p>



<p>Then set up the layout so you don&#8217;t get confused.</p>



<p>This step is crucial.</p>



<p>Everyone always gets confused by the layout because like we&#8217;re human beings.</p>



<p>I can&#8217;t count 32 zeros that are all like in the same area and like, you know, and not</p>



<p>get confused every single time.</p>



<p>I mean, I guess I won&#8217;t get confused half the time, but that&#8217;s not good enough.</p>



<p>So step one is place the layout for yourself so it&#8217;s easier for you to place the bits.</p>



<p>place the bits and I wrote this at the top 8 bits and 23 bits just as a reminder double check</p>



<p>yourself 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3 that&#8217;s 23 bits 1 2 3 4 1 2 3 4 that&#8217;s</p>



<p>8 bits we don&#8217;t need to remember that the sign bit is one bit for now it&#8217;s not too hard so now</p>



<p>let&#8217;s place it so the first thing to note is that this number was actually positive positive is</p>



<p>the negative sign there, but if it makes you feel better, we&#8217;ll just put a positive sign there just to clarify and be specific.</p>



<p>So because the number is positive, the sign bit is going to be zero. If it were negative, it would be one.</p>



<p>Then we will put the biased exponent bits. So we already converted up there. So I&#8217;m just going to copy paste it here.</p>



<p>We&#8217;re pretty lucky that the bits are just as big as the number of biased exponent bits that are available.</p>



<p>But suppose for the sake of argument that we had,</p>



<p>the sake of argument that we had just like you know this small number here for the biased exponent</p>



<p>what would you do with the remaining spaces you would just pad with zeros to the left</p>



<p>because remember in whole numbers in binary and decimal you pad to the left you&#8217;re not actually</p>



<p>changing the value you definitely would not want to pad to the right but you got to put</p>



<p>a bit in every position it&#8217;s got to be something so i&#8217;m just going to pad with zeros</p>



<p>then we take the fractional part from the scientifically notated form so that&#8217;s just</p>



<p>form so that&#8217;s just this right here notice how I&#8217;m copy pasting every bit</p>



<p>except for the one that starts the number I&#8217;m not going to do the one dot</p>



<p>part because that&#8217;s always assumed so we don&#8217;t need to store it it wouldn&#8217;t make</p>



<p>sense I&#8217;ll copy paste the fractional part and I&#8217;ll just stick it down there</p>



<p>and now we have a bunch of leftover bits that we need to fill out with the</p>



<p>fractional part you pad to the right not to the left so I&#8217;m just going to put</p>



<p>zeros to the right because that won&#8217;t change the value of the fractional part</p>



<p>Now we&#8217;ve got it. I&#8217;m just going to double check my work here.</p>



<p>Oh gosh, it&#8217;s too hard to read and then a bunch of zeros. Okay.</p>



<p>Then remove these spaces because now that you&#8217;ve done your layout,</p>



<p>you actually want to bear in mind that the machine doesn&#8217;t have spaces.</p>



<p>The machine is just, you know, a bunch of ones and zeros everywhere.</p>



<p>So I&#8217;m just going to carefully remove the two spaces.</p>



<p>And this is it.</p>



<p>for floating point representation of the number of the decimal number positive 45.84375</p>



<p>seems like a lot but it&#8217;s not too bad once you kind of get used to the format</p>



<p>and the bias and you already know the other steps of you know converting decimal to binary and back</p>



<p>again so let&#8217;s do another number let&#8217;s do it backwards so i&#8217;m going to open up a new tab here</p>



<p>example, IEEE 754 32-bit float 2 decimal.</p>



<p>Okay, so suppose we started with the following number.</p>



<p>Start with this number.</p>



<p>Oh my gosh, right?</p>



<p>Remember the layout.</p>



<p>So in the layout we have, use the layout.</p>



<p>Maybe I should copy paste the layout again one more time just to make sure that it&#8217;s</p>



<p>easy to see.</p>



<p>it&#8217;s easy to see. So I&#8217;m going to paste it up at the top and well, no, maybe I want this because</p>



<p>this is like a little bit better. I want that version. Okay. So 32 bits, a bias of 127. So</p>



<p>we&#8217;re going to use the layout. I&#8217;m just going to copy paste the original number and then add</p>



<p>spaces because I know, well, I guess I can copy paste the layout itself right above that number.</p>



<p>I know I need a space right there that&#8217;s the sine bit and then I need a space</p>



<p>after that and notice how the numbers all line up so there&#8217;s nothing missing</p>



<p>just to double-check yourself okay so I have the layout I know right away that</p>



<p>the number is going to be positive because the sine bit is zero sign is</p>



<p>positive okay so then I need to pull the biased exponent will be biased</p>



<p>the exponent bits only so I&#8217;m just going to copy paste those bits and then I&#8217;ll</p>



<p>pull out the fractional part first pull out the fractional part I&#8217;m going to</p>



<p>copy paste all those bits and maybe I&#8217;ll just say zero point those bits because</p>



<p>that&#8217;s what I originally grabbed and I can delete all the zeros on the right</p>



<p>side because again that won&#8217;t change the value of the fractional part so I&#8217;m</p>



<p>going to delete make sure you&#8217;re only deleting zeros though delete that now I</p>



<p>I need to unbias the biased exponents.</p>



<p>First, actually, I should, well, let&#8217;s convert the biased exponent to decimal.</p>



<p>A little easier.</p>



<p>I guess you don&#8217;t have to do that, but it&#8217;s a little easier for me.</p>



<p>Pull the biased exponent.</p>



<p>So this number is going to be 132, which I think is what we had last night.</p>



<p>Let me just double check that.</p>



<p>132.</p>



<p>Yeah.</p>



<p>132, yeah so the biased exponent that we pulled out is 132 then we unbiased the</p>



<p>biased exponent so just subtract the bias again in 32-bit format here the bias</p>



<p>is 127 so I&#8217;m going to subtract 127 instead of adding 127 so now I know the</p>



<p>real bias or sorry I know the real exponent is 5 then I can recreate the</p>



<p>I&#8217;ll put sudo here just because it&#8217;s not, you know, I&#8217;m not, I&#8217;m not converting binary for,</p>



<p>for the entire thing. So that means I can take the fractional part here and I can say it&#8217;s going to be</p>



<p>one dot the fractional part. Maybe I should remove that zero here to make it less.</p>



<p>I don&#8217;t know. Cause if I put a one there, it kind of feels like I&#8217;m saying the number is</p>



<p>that it&#8217;s one dot something.</p>



<p>I don&#8217;t like that I&#8217;m putting a zero there.</p>



<p>I&#8217;m just gonna erase it</p>



<p>because it&#8217;s really gonna end up being a one.</p>



<p>And if I say pull the fractional part</p>



<p>and I put a one there,</p>



<p>then it doesn&#8217;t it kind of sound like</p>



<p>I&#8217;m pulling the one from somewhere?</p>



<p>No, the one is implied.</p>



<p>Anyway, so now I can recreate the number</p>



<p>in pseudo scientific notation.</p>



<p>I can say times two to the something power.</p>



<p>We know that the exponent is five.</p>



<p>Again, it&#8217;s pseudo scientific notation</p>



<p>because if five we&#8217;re gonna do the complete,</p>



<p>complete, you know, true scientific notation. The right side should also be in binary, but I&#8217;m not</p>



<p>going to do it. I&#8217;m a little bit lazy because we don&#8217;t need that IEEE. So it&#8217;s going to be two to</p>



<p>the fifth power. Then if I undo the scientific notation, I&#8217;m really just going to take this</p>



<p>scientifically notated version and I&#8217;m going to say, well, I&#8217;m going to move the decimal point to</p>



<p>the right five times because that&#8217;s what the part on the right says. So I&#8217;m going to go one, two,</p>



<p>1, 2, 3, 4, 5, stick it there, remove the original decimal point, and then I can remove</p>



<p>the exponent part. So then let me just double check my work. 1, 0, 1, 1, 0, 1, 1, 1, 0, 1. Okay.</p>



<p>So we&#8217;ve got that now. Then all we have to do is convert this number from binary to decimal.</p>



<p>The final number here is just, you know, it&#8217;s going to be the same number that we worked with</p>



<p>number that we worked with previously so I&#8217;m just going to copy paste it there is</p>



<p>you know of course this video is not about converting back and forth from</p>



<p>binary to decimal with fractions check out my other video if you want to learn</p>



<p>how to do that but once we do that you know this number becomes that number</p>



<p>and and now we know how to convert back and forth between a decimal number and</p>



<p>for 32-bit floats in the machine.</p>



<p>No problem.</p>



<p>A lot of steps, but no problem once you understand them.</p>



<p>Okay, now let&#8217;s do an example</p>



<p>with 64-bit floating point numbers.</p>



<p>Honestly, this is not gonna be more difficult.</p>



<p>In 64-bit floats, the idea and the format and the steps,</p>



<p>it&#8217;s all gonna be the exact same thing.</p>



<p>It&#8217;s just that we have more bits</p>



<p>for the biased exponent and the fraction,</p>



<p>and then the bias itself will be a little bit higher.</p>



<p>So let me copy paste the format for you to see.</p>



<p>at for you to see. So in IEEE 64-bit floats, IEEE 64-bit float, well IEEE 754, 64-bit float,</p>



<p>you know we refer to these floats as doubles right double precision floating point numbers.</p>



<p>Notice how instead of 8 bits for the biased exponent we have 11 so we can represent a much</p>



<p>notice how for the uh the fraction part instead of having 23 bits we have 52 bits so we can also</p>



<p>represent much more precisely that&#8217;s really the only difference let&#8217;s uh oh sorry the other</p>



<p>difference is also that the bias is now equal to 1023 instead of 127 so what is that like</p>



<p>10 times larger of a number that we can represent or something like that so mostly we get more</p>



<p>If you don&#8217;t like it, sorry, it&#8217;s the way it is.</p>



<p>It&#8217;s in the hardware.</p>



<p>So let&#8217;s do an example for a 64-bit float for a double.</p>



<p>64-bit example.</p>



<p>Let&#8217;s say we started with the following number.</p>



<p>Inside of the machine.</p>



<p>Like we looked inside of the machine and we grabbed these bits.</p>



<p>And I&#8217;ll get rid of the spaces.</p>



<p>So we have like a giant, big, huge number.</p>



<p>We have like a giant big huge number.</p>



<p>We&#8217;re trying to figure out, you know, what is this number in decimal.</p>



<p>So I&#8217;m going to add spaces to respect the layout.</p>



<p>I&#8217;m going to just copy paste the layout right here.</p>



<p>I&#8217;m going to say respect the layout.</p>



<p>I&#8217;m going to paste it and then that helps me line everything up.</p>



<p>So I&#8217;m going to say the sine bit is the first bit and then I&#8217;ll put a space there so I know.</p>



<p>All right, the sine bit is a one.</p>



<p>That means it&#8217;s going to be a negative number.</p>



<p>The biased exponent bits are there.</p>



<p>The fractional bits are there.</p>



<p>bits are there so well first thing I can just do is say that the sine is going to be negative</p>



<p>because the sine bit is a one</p>



<p>and then I&#8217;ll pull the biased exponent bits which is going to be this number right here</p>



<p>should pull the fraction bits next. Fraction bits are just here I&#8217;m gonna</p>



<p>copy paste those here and then I can remove the zeros. Be very careful you&#8217;re</p>



<p>not removing any ones. So there was a lot of wasted bits there. That&#8217;s okay. I&#8217;ll</p>



<p>convert the biased exponent to decimal. So that&#8217;s going to be…</p>



<p>I think and I did not do that in my head.</p>



<p>I have an answer sheet.</p>



<p>Don&#8217;t worry.</p>



<p>I&#8217;m not that cool.</p>



<p>Then we&#8217;ll unbiased or de-bias unbiased the biased exponents by just subtracting the bias.</p>



<p>Remember in this 64 bit format, the bias is 1023.</p>



<p>So that means I got to take 1031 minus 1023 and that will be equal to 8.</p>



<p>Okay.</p>



<p>Okay, now we kind of have everything we need to sort of reconstruct the scientific notation part, right?</p>



<p>We have the fraction bits, that&#8217;s the most important part.</p>



<p>Oh, and then also the sine bits.</p>



<p>So I can say negative something.</p>



<p>It&#8217;s obviously going to be one dot something because even though the number is negative,</p>



<p>it will still always start with a one.</p>



<p>That rule doesn&#8217;t change.</p>



<p>Negative one dot something and I&#8217;ll just paste the, whoops, paste the fraction bits.</p>



<p>I think I did paste the right thing.</p>



<p>right thing so we paste the fraction bits and then we have to use the regular exponent the</p>



<p>unbiased exponent the non-biased exponent two times times two to the oops times two to the eighth power</p>



<p>now this is our number in scientific notation um</p>



<p>convert to scientific notation i&#8217;ll put p for pseudo scientific notation</p>



<p>and then now we have to convert to just regular format okay so I&#8217;m going to</p>



<p>copy paste this right here and if it&#8217;s 2 to the eighth power that means the real</p>



<p>number is going to be bigger than it looks in scientific notation even though</p>



<p>if you are very familiar with scientific notation you kind of already know that</p>



<p>it looks big but you know if we just if we&#8217;re only talking about the bits on the</p>



<p>1, 2, 3, 4, 5, 6, 7, 8.</p>



<p>Put the decimal point there.</p>



<p>Remove the original decimal point.</p>



<p>Now we no longer need 2 to the 8th power.</p>



<p>And again, just as a reminder, if it was 2 to the negative 8th power,</p>



<p>you would be moving the decimal point in the other direction.</p>



<p>So now we&#8217;ve got this number 111, 010101, 0101, 0101, 0101.</p>



<p>Then a 0.01.</p>



<p>Okay, so then convert to decimal.</p>



<p>doesn&#8217;t talk about how to convert back and forth from binary to decimal find my other videos but</p>



<p>basically uh it&#8217;s going to end up being six uh negative four six nine point two five</p>



<p>okay we now have done a quick practice starting with a giant number of bits and slowly converting</p>



<p>them to the real uh floating point number in decimal that uh that they represent i&#8217;m not going</p>



<p>going to do another number in the reverse direction because we already did that for 32 bits</p>



<p>and again with 64 bits the only real difference is just you have more exponent and fraction bits</p>



<p>and the bias is a higher number and that&#8217;s it so like all the other steps are just the same</p>



<p>I just wanted to show you one time with a 64-bit number in one direction but</p>



<p>I think at this point we&#8217;re good thank you so much for watching this video I hope you learned</p>



<p>had a little bit of fun. I&#8217;ll see you in the next video.</p>



<p>and grow this community so we&#8217;ll be able to do more videos, longer videos, better videos,</p>



<p>or just I&#8217;ll be able to keep making videos in general. So please do me a kindness and subscribe.</p>



<p>You know, sometimes I&#8217;m sleeping in the middle of the night and I just wake up because I know</p>



<p>somebody subscribed or followed. It just wakes me up and I get filled with joy. That&#8217;s exactly what</p>



<p>happens every single time. So you could do it as a nice favor to me or you could troll me if you</p>



<p>want to just wake me up in the middle of the night, just subscribe and then I&#8217;ll just wake up.</p>



<p>just wake up I promise that&#8217;s what will happen also if you look at the middle of</p>



<p>the screen right now you should see a QR code which you can scan in order to go</p>



<p>to the website which I think is also named somewhere at the bottom of this</p>



<p>video and it&#8217;ll take you to my main website where you can just kind of like</p>



<p>see all the videos I published and the services and tutorials and things that I</p>



<p>offer and all that good stuff and if you have a suggestion for clarifications or</p>



<p>or errata or just future videos that you want to see please leave a comment or if you just want to</p>



<p>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>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>really mean the world to me I would really appreciate it so again thank you so much for</p>



<p>watching this video and um enjoy the cool music as as I fade into the darkness which is coming for us</p>



<p>Thank you.</p>
<p>The post <a href="https://www.NeuralLantern.com/master-ieee-754-floats-binary-to-decimal-guide/">Master IEEE 754 Floats: Binary to Decimal Guide</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/master-ieee-754-floats-binary-to-decimal-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Master Binary Scientific Notation (with Fun Examples!)</title>
		<link>https://www.NeuralLantern.com/how-to-master-binary-scientific-notation-with-fun-examples/</link>
					<comments>https://www.NeuralLantern.com/how-to-master-binary-scientific-notation-with-fun-examples/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Sun, 04 May 2025 06:24:32 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Conversions]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[base-2 notation]]></category>
		<category><![CDATA[binary fractions]]></category>
		<category><![CDATA[binary math]]></category>
		<category><![CDATA[binary numbers]]></category>
		<category><![CDATA[binary scientific notation]]></category>
		<category><![CDATA[coding for beginners]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[decimal to binary]]></category>
		<category><![CDATA[floating-point representation]]></category>
		<category><![CDATA[IEEE 754]]></category>
		<category><![CDATA[number systems]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[scientific notation]]></category>
		<category><![CDATA[tech tutorials]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=99</guid>

					<description><![CDATA[<p>Master binary scientific notation with this fun, beginner-friendly guide! Learn to represent binary numbers with fractions for IEEE 754 and computer science. Clear examples show how to handle large and small numbers in base-2. Perfect for students and coders! Subscribe for more tech tutorials.</p>
<p>The post <a href="https://www.NeuralLantern.com/how-to-master-binary-scientific-notation-with-fun-examples/">How to Master Binary Scientific Notation (with Fun Examples!)</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe 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>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>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>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>Thanks for watching!</p>



<p>Find us on other social media here:</p>



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



<p>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>Hey there! Let&#8217;s talk about representing binary numbers with fractions in scientific notation.</p>



<p>Why would you need to do this? Probably the best use that I can think of off the top of my head</p>



<p>is being able to represent binary numbers with fractions inside your machine in a format known</p>



<p>It&#8217;s just a crucial step before you can represent numbers inside your machine using IEEE 754.</p>



<p>Okay, so first off, let me just show you a little bit here about scientific notation.</p>



<p>So you probably have seen something like this before where it&#8217;s like 8.3873,</p>



<p>and then you&#8217;ll see like a multiplier times 10 to the fifth power, right?</p>



<p>I can&#8217;t really type this out very well, so maybe I could just draw it for a second, you know.</p>



<p>well so maybe I could just draw it for a second you know 8.54 times 10 to the fifth power right</p>



<p>that&#8217;s what I&#8217;m trying to convey but anyway so about scientific notation itself it&#8217;s standardized</p>



<p>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>and there&#8217;s less confusion part of the standard is that you always want to have a number on the</p>



<p>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>You don&#8217;t want to have a 10 or anything greater that would also be bad. You just want to have</p>



<p>1, 2, 3, 4, 5, 6, 7, 8, 9 on the left side. And then on the fractional side,</p>



<p>you want to have a number that just kind of like helps you represent the entire</p>



<p>original number without losing precision. And then on the right side, you want a number,</p>



<p>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>in. So this is decimal. The base for decimal is 10. So we&#8217;re going to say 10 to the something</p>



<p>power. What is the power? The power here helps you understand how big or small the number on</p>



<p>the left really is. That&#8217;s kind of one of the benefits of scientific notation. It seems to</p>



<p>help you understand a little bit more of how big or how small a number is rather than exactly</p>



<p>than exactly down to you know the last digit what what is the number precisely so we could say for</p>



<p>now it focuses more on largeness or smallness than preciseness what number are we actually</p>



<p>representing with this in scientific notation well times 10 to the fifth power just means move the</p>



<p>decimal point over a certain number of times so uh you know that&#8217;s why we have 10 to the something</p>



<p>go left or right in a base 10 number you&#8217;re looking at a different number that has a factor</p>



<p>of 10 for its strength in either direction like multiply by 10 multiply by 10 multiply by 10</p>



<p>or divide by 10 divide by 10 divide by 10 in the other direction so this means we want to move the</p>



<p>decimal point five times to the right to increase the strength of the number times five so one two</p>



<p>three four five if we put the decimal number there then this is the number we were going to represent</p>



<p>number we were going to represent originally so if somebody says hey give me this number 838730</p>



<p>and put it in scientific notation then you your first instinct is to say all right let&#8217;s uh type</p>



<p>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>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>three four five times over in order to get the decimal point there so that</p>



<p>means it&#8217;s going to be this times 10 to the fifth power because we moved it over</p>



<p>five times and you can see that&#8217;s the original number that I showed you these</p>



<p>zeros at the very end they don&#8217;t actually mean anything so we can omit</p>



<p>them probably a smarter idea to omit them and that&#8217;s why we see numbers that</p>



<p>way okay so keep that in mind there&#8217;s only one digit let&#8217;s maybe do like</p>



<p>practice number here I have a couple practice numbers written down already</p>



<p>let&#8217;s see so we&#8217;ll start with this number a huge gigantic number just to</p>



<p>practice if we copy paste this down to the next line and then we decide all</p>



<p>right how many times do we need to move the decimal point to get the decimal</p>



<p>point right there so that the two is the first number remember one to nine</p>



<p>inclusive so I&#8217;ll just I&#8217;ll use two decimal points so I can count more</p>



<p>9, 10, 11, 12, 13.</p>



<p>So that means I did 13 moves.</p>



<p>I&#8217;ll put 13 right here so I don&#8217;t forget.</p>



<p>Times 10 to the 13th power.</p>



<p>And the 13 is positive because when we&#8217;re looking at the scientifically notated format</p>



<p>of the same number, you know, 2 point something is way smaller than the original number.</p>



<p>So we want the scientifically notated format or form to get bigger in order to reach this</p>



<p>number.</p>



<p>in order to reach this number so that means 10 times sorry times 10 to a positive number positive</p>



<p>means it&#8217;ll be bigger in its original form okay so now let&#8217;s do another practice number</p>



<p>let&#8217;s do a number that&#8217;s really really really small like you&#8217;re inside of inner space or</p>



<p>something so we start up with this number and we still want to have a number between</p>



<p>rewrite it here I really want to have eight point something because that&#8217;s the first number that&#8217;s</p>



<p>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>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>to be negative seven is going to be the exponent so you know raised something raised to the negative</p>



<p>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>And now this is the same number represented in scientific notation.</p>



<p>It should have all the same digits.</p>



<p>The decimal point basically should just be moved.</p>



<p>Of course, you know, when you represent in scientific notation,</p>



<p>depending on what standard you&#8217;re working with,</p>



<p>you might actually omit some of the numbers at the very end of the fraction here.</p>



<p>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>rather than represent the number exactly precisely.</p>



<p>okay so we got that two practices in there how can we do this same exact concept in binary</p>



<p>well keep in mind in binary binary is a base two number this video is not about binary conversion</p>



<p>as a whole number or binary with fraction let&#8217;s just pretend that we already know how to do that</p>



<p>and we have a binary number to start off with so let me grab my example number here</p>



<p>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>this part yet from decimal with a fraction to binary with a fraction or back and forth.</p>



<p>See my other videos. For now, we&#8217;ll assume you can do this. So how can we get this in scientific</p>



<p>notation? So the first thing we have to understand is that it&#8217;s going to be, you know, some number</p>



<p>right because that was the format we used before the number should only start with a one it should</p>



<p>never even start with a zero remember in binary we can only use ones and zeros before i said here</p>



<p>let me just show you this real fast again before i said the starting number has to be one through</p>



<p>nine inclusive that was because in decimal we have zero one two three four five six seven eight nine</p>



<p>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>a character set like the available characters we can use to represent the numbers in decimal</p>



<p>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>the one so that means the first number always has to be one it has to be always one dot something</p>



<p>for our purposes to represent the same number in scientific notation so it&#8217;s going to be</p>



<p>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>decimal point there uh and then i&#8217;m just going to count like how much did i actually move the</p>



<p>seven eight nine ten eleven twelve thirteen fourteen fifteen six just fifteen just fifteen not</p>



<p>sixteen so i&#8217;m going to put times something to the fifteen power and remove that other decimal</p>



<p>point and then the base is two so it&#8217;s going to be two to the fifteenth power</p>



<p>so now maybe i should move that up a little bit</p>



<p>gigantic number uh in scientific notation it&#8217;s going to look a little smaller but then the times</p>



<p>base to the 15th power is going to help us understand how big it is oh it&#8217;s like pretty big</p>



<p>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>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>256 that&#8217;s probably going to be a number that&#8217;s no bigger than or just like slightly bigger than</p>



<p>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>copy to another line and then make sure that the decimal point sits in a place where there&#8217;s always</p>



<p>a one at the start</p>



<p>and then just count the number of times you moved</p>



<p>number of times you moved the number oh I guess before we would have possibly</p>



<p>deleted numbers on the right if we were gonna reduce precision in this case</p>



<p>after we count the numbers we&#8217;re gonna remove everything to the left of the one</p>



<p>so that the one is in the first position and I&#8217;ll just go ahead and do it okay so</p>



<p>how many times do we move it one two three four five six seven eight that&#8217;s</p>



<p>eight times so I&#8217;m gonna put an eight there just to remind myself that there</p>



<p>will be an eight I&#8217;ll remove all the stuff at the beginning that doesn&#8217;t</p>



<p>all the stuff at the beginning that doesn&#8217;t matter anymore and it&#8217;s going to be times two because</p>



<p>that&#8217;s our base to the eighth power but the original number is a lot smaller than the</p>



<p>scientifically notated number looks so that means we have to put a negative eight because remember</p>



<p>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>fifth power then you know that we&#8217;re just basically adding four zeros right so</p>



<p>like we have five total zeros so we&#8217;re adding four zeros to the ten but if we</p>



<p>did to the negative five power we&#8217;re gonna be like dividing it by ten a bunch</p>



<p>of times so instead of multiplying it by ten for a total of five times we&#8217;re</p>



<p>gonna divide by ten so then the number gets really really really small so that</p>



<p>means when we say two to the negative eight power we&#8217;re gonna be dividing it</p>



<p>We&#8217;re going to be dividing it by two that many times.</p>



<p>And so we end up with a really, really, really small number.</p>



<p>Isn&#8217;t that what I kind of said?</p>



<p>Let&#8217;s see.</p>



<p>I mean, like, not exactly, but, you know, it&#8217;s like 0.003 and then some numbers after that.</p>



<p>Didn&#8217;t I say one divided by 256?</p>



<p>It&#8217;s 0.003 and then some numbers.</p>



<p>So this number is just a little bit bigger than 0.003.</p>



<p>Nine.</p>



<p>Let&#8217;s see how much bigger it is.</p>



<p>bigger it is point three six two five what</p>



<p>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>you know if i did some like binary up here and i was in binary mode then it would probably make</p>



<p>more sense it ended up being exactly the same exact number that&#8217;s why i was confused because</p>



<p>if we just type that part on the right side then it really is going to be one over 256.</p>



<p>Anyway, long story short, we have this number here, the fractional part, and then we&#8217;re</p>



<p>going to multiply it by two to the something power.</p>



<p>Notice something in particular that I&#8217;m doing, which is probably my mistake, but I kind of</p>



<p>like doing it this way.</p>



<p>Notice how the left part is in binary and the right part is in decimal.</p>



<p>There&#8217;s no number two in binary or no number eight in binary.</p>



<p>numbers like this to scientific notation so that you can convert a binary number to i triple e</p>



<p>floating point number this is as far as you really need to go but if you truly want to represent a</p>



<p>binary number in scientific notation then you should also convert all of the relevant parts</p>



<p>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>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>big number times 10 in binary is still the number two to the something power the negative 1000 in</p>



<p>binary power is going to be you know eight the negative eight power so this is great if you just</p>



<p>want to write an entire number in scientific notation but uh you know in probably my next</p>



<p>video when we talk about ieee 754 notation this is as far as you really need to go</p>



<p>eight number into a a whole number in binary and then putting that somewhere but so just</p>



<p>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>if you only want to be in pure binary then this is what it would look like</p>



<p>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>much for watching i hope you learned a little bit and had a little bit of fun see you in the next</p>



<p>video</p>



<p>Hey everybody!</p>



<p>Thanks for watching this video again from the bottom of my heart.</p>



<p>I really appreciate it.</p>



<p>I do hope you did learn something and have some fun.</p>



<p>If you could do me a please, a small little favor, could you please subscribe and follow</p>



<p>this channel or these videos or whatever it is you do on the current social media website</p>



<p>that you&#8217;re looking at right now.</p>



<p>It would really mean the world to me and it&#8217;ll help make more videos and grow this community.</p>



<p>better videos or just I&#8217;ll be able to keep making videos in general so please</p>



<p>do do me a kindness and and subscribe you know sometimes I&#8217;m sleeping in the</p>



<p>middle of the night and I just wake up because I know somebody subscribed or</p>



<p>followed it just wakes me up and I get filled with joy that&#8217;s exactly what</p>



<p>happens every single time so you could do it as a nice favor to me or you could</p>



<p>you control me if you want to just wake me up in the middle of the night just</p>



<p>subscribe and then I&#8217;ll just wake up I promise that&#8217;s what will happen also if</p>



<p>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>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>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>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>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>it would really it really mean the world to me i would really appreciate it so again thank you</p>



<p>so much for watching this video and um enjoy the cool music as as i fade into the darkness</p>



<p>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 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>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>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>Thanks for watching!</p>



<p>Find us on other social media here:</p>



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



<p>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>Hello there, let&#8217;s talk about how to convert decimal numbers with fractions into binary</p>



<p>numbers with fractions and vice versa.</p>



<p>So up to this point, if you&#8217;ve been watching my other videos, you probably know that you</p>



<p>can easily convert a decimal number to binary and binary to decimal if the decimal and binary</p>



<p>numbers but in order to progress towards IEEE 754 representation in other words</p>



<p>in order to eventually be able to represent binary numbers with fractions</p>



<p>like floats or doubles in the machine you have to start learning how to get</p>



<p>the fraction part of a decimal number into binary the way we&#8217;re going to do</p>



<p>it in this video it&#8217;s not actually going to be the final representation of how</p>



<p>your machine stores floating point numbers but it&#8217;s an important step on</p>



<p>on the way there. Without this step, you probably wouldn&#8217;t be able to do it.</p>



<p>So what am I talking about? I&#8217;m just going to open up this notepad real fast and just show you</p>



<p>that what I really mean is, suppose we have like a number 45 point blah, blah, blah, blah, blah,</p>



<p>right? So this is the whole part and this is the fractional part. Okay, no problem. Also in binary,</p>



<p>we have like a bunch of ones and zeros. This is a whole number, but we could put a decimal point</p>



<p>and then just start doing more numbers after the decimal point in order to represent a</p>



<p>in order to represent a fractional binary number.</p>



<p>Okay, so let&#8217;s see.</p>



<p>We know, hopefully at this point, if you watch my other videos,</p>



<p>that, I don&#8217;t know, I&#8217;m just going to put some random numbers here</p>



<p>and then like some more random numbers there.</p>



<p>And you know that the strength of each of these numbers</p>



<p>is sort of like increasing by powers of two on the left side, on the whole side.</p>



<p>So the strength of that first digit is one.</p>



<p>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>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>just put like a zero there and then you know the left most digit has a strength of 128 so basically</p>



<p>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>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>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>put a decimal marker there, it&#8217;s really the same deal except as we go left, we were multiplying by</p>



<p>have more power more strength but as we go to the right past the decimal point they should have less</p>



<p>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>one half will be the strength of this digit right here whoops one half so the strength that that</p>



<p>digit has is just one half the strength that the next digit has is going to be one fourth remember</p>



<p>1 4th remember you multiply sorry you divide by 2 each time whoops I&#8217;m getting lost oh man I</p>



<p>probably need to add some spaces because it&#8217;s starting to get pretty ugly so this digit has</p>



<p>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>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>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>one half, one third, one fourth.</p>



<p>Don&#8217;t increase the denominator by one.</p>



<p>You want to multiply, or sorry,</p>



<p>you want to divide by two each time.</p>



<p>Or if you want to say the word multiplication,</p>



<p>then you multiply by 0.5, I guess, if you want to.</p>



<p>I&#8217;m just going to write 1 16th</p>



<p>and then just be done with the divisions.</p>



<p>I hope you understand what I&#8217;m talking about.</p>



<p>We&#8217;re going to do some examples right now.</p>



<p>Okay, so let&#8217;s calculate.</p>



<p>Well, actually, let&#8217;s just, just to emphasize, just to make sure everybody understands, what</p>



<p>we would do to convert such a number from binary to decimal would basically be, you</p>



<p>know, compute the left side as if it were a whole number.</p>



<p>I&#8217;m going to put W for whole number.</p>



<p>And then separately convert the fractional part as if it were just, you know, zero point</p>



<p>something.</p>



<p>And then just combine the two things when you&#8217;re in decimal.</p>



<p>And you&#8217;ll do the same thing when converting a number from decimal to binary.</p>



<p>decimal to binary you convert the whole part first put that into ones and zeros then convert the fact</p>



<p>the fractional part into a fractional binary part and then just combine them across the decimal point</p>



<p>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>to resolve easily it&#8217;s kind of like a good lesson here when you&#8217;re converting between binary and</p>



<p>there are always going to be some numbers in in in decimal that you can&#8217;t represent in binary</p>



<p>and vice versa there are always going to be some numbers in binary that you can&#8217;t represent in</p>



<p>decimal so it&#8217;s not that decimal or binary or you know superior or inferior i mean all technology</p>



<p>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>that you type randomly are just never going to resolve and you&#8217;ll have to give up at some point</p>



<p>have to give up at some point and say, well, we&#8217;re just going to call this a precision loss</p>



<p>because we just, we just have to like give up, especially if you only have so many bits</p>



<p>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>here? There are lots of different ways to do it. The way that I&#8217;m going to show you is just</p>



<p>multiplying by two. So if we take, you know, 0.126753 and we multiply it by two,</p>



<p>We end up with, let&#8217;s see, times 2.</p>



<p>Whoops, hello.</p>



<p>Oh, I got to do that.</p>



<p>Times 2.</p>



<p>We&#8217;re going to end up with a different number.</p>



<p>If the number is equal to or greater than 1,</p>



<p>then we will say that we have achieved a number of 1 for the converted binary number.</p>



<p>And if not, we&#8217;ll say we have achieved a number of 0.</p>



<p>If the number is 1, we&#8217;ll also subtract 1 from the remaining number here in decimal.</p>



<p>The result we have is just, what&#8217;s going on?</p>



<p>Oh, I somehow turned on my annotator.</p>



<p>Okay.</p>



<p>In this case, we just have, you know, this number right here.</p>



<p>It&#8217;s not greater than one or equal to one.</p>



<p>So I&#8217;m just going to say this gave us a binary number of zero.</p>



<p>And because it gave us a zero, we&#8217;re not actually going to change it at all.</p>



<p>We&#8217;re not going to subtract one from it.</p>



<p>We&#8217;re just going to leave it as is.</p>



<p>We will then multiply by two again.</p>



<p>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>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>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>Now we have a number that equals or exceeds one.</p>



<p>So we&#8217;ve achieved a one in the binary position.</p>



<p>So it&#8217;s going to be a one here.</p>



<p>Then we got to subtract one.</p>



<p>So we&#8217;re just going to be left with 0.014, 024 and whatever.</p>



<p>And then we just continue.</p>



<p>Maybe I&#8217;ll do it a couple more times,</p>



<p>but I&#8217;m going to give up because I don&#8217;t think</p>



<p>that this number will translate completely.</p>



<p>So I&#8217;m going to say multiply by two again,</p>



<p>and it&#8217;s going to give us,</p>



<p>hang on a second here.</p>



<p>What was that?</p>



<p>Hang on a second here. What was that? That was one. Oh, I forgot to subtract one. So I got to</p>



<p>subtract one. And then I&#8217;m going to multiply by two. Now we get this number right there.</p>



<p>This is not equal to or greater than one. So the bit is going to be zero.</p>



<p>And then that means the remaining number is just going to be the same thing.</p>



<p>We&#8217;ll do another. Actually, let me let me clean the calculator for a second here.</p>



<p>going to select this whole thing and just paste that and I&#8217;m going to say</p>



<p>multiplied by two that&#8217;s going to be that new number and I think you&#8217;re</p>



<p>starting to understand why I want to give up because we&#8217;ll just be kind of</p>



<p>doing this forever this might end up being an irrational number in binary I</p>



<p>don&#8217;t really know I haven&#8217;t gone that far but it&#8217;s definitely gonna take a long</p>



<p>time so I&#8217;m gonna give up and I&#8217;m just gonna say all right the final binary</p>



<p>number is gonna be 0.00100 and then just say maybe there&#8217;s some more stuff at</p>



<p>maybe there&#8217;s some more stuff at the end we&#8217;ll just call this a precision loss</p>



<p>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>like two zeros and then a one and then two zeros on the other side let me multiply this by two</p>



<p>real fast just to show you without symmetry what would happen so I&#8217;m gonna multiply that by two</p>



<p>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>or meet one and so the number we have left over is just that okay so now</p>



<p>because there&#8217;s no symmetry you can see that the number is going to be point</p>



<p>zero zero one zero zero zero we go from top to bottom we don&#8217;t do any kind of</p>



<p>reversal like you might do with whole number binary conversion I don&#8217;t know</p>



<p>maybe it&#8217;ll be zero for a long long long long time and never or yeah they&#8217;ll</p>



<p>probably be some ones in there at least I don&#8217;t know if it&#8217;s ever going to</p>



<p>resolve you&#8217;ll know you&#8217;re finished when the</p>



<p>Here is a zero.</p>



<p>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>Let&#8217;s do a number that I know is going to resolve.</p>



<p>I have this one prepared in advance.</p>



<p>So let&#8217;s do 0.84375.</p>



<p>Okay.</p>



<p>So how do we convert this?</p>



<p>Again, just multiply by two.</p>



<p>Every single time you meet or exceed one, then you&#8217;ll say that we have a one in the binary number.</p>



<p>binary number and then subtract one after that and if not we will say that</p>



<p>we have a zero in the binary position and then we won&#8217;t subtract one okay so</p>



<p>that number multiplied by two is going to be point one six eight seven five so</p>



<p>that&#8217;s definitely greater than or equal to one so I&#8217;m going to say we have a one</p>



<p>in the binary position and then the next number is going to be just be zero point</p>



<p>now we take that number 6875 you could also just you know in your calculator you could say minus</p>



<p>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>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>one here and then after we subtract one it&#8217;s going to be 375 no problem okay so let me just</p>



<p>And then multiply by 2 to get to the next bit position.</p>



<p>It&#8217;s going to be 0.75.</p>



<p>All right, so 0.75, that number is less than 1, so we have a 0 in that bit position.</p>



<p>We also don&#8217;t subtract anything because we had a 0 in that bit position.</p>



<p>Then we just multiply by 2 again.</p>



<p>Multiply by 2, now we have 1.5 because that&#8217;s greater than or equal to 1.</p>



<p>We have a 1 in that bit&#8217;s position, then we subtract 1.</p>



<p>one it&#8217;s just going to be 0.5 that should be pretty easy right because that&#8217;s that sounds</p>



<p>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>and then multiply by two again notice how that is exactly a one so it&#8217;s going to be 1.0</p>



<p>which means we have a one in the position because it is equal to or greater than one</p>



<p>and then uh well what we have left over is zero</p>



<p>Zero multiplied by two is going to be zero.</p>



<p>So that means if we kept doing this forever,</p>



<p>then all the numbers down here are just going to be zeros forever.</p>



<p>And I said in another video,</p>



<p>when you realize what&#8217;s going on with the zeros,</p>



<p>like where are they?</p>



<p>Are they on the left or the right?</p>



<p>When you&#8217;re converting a whole number from binary to decimal or decimal to binary,</p>



<p>the zeros would be on the left side.</p>



<p>So that&#8217;s why we would reverse</p>



<p>because if you just add infinity zeros on the left of a whole number,</p>



<p>you&#8217;re not changing the value.</p>



<p>number you&#8217;re not changing the value but if you added them to the right you&#8217;d be increasing the</p>



<p>value when it comes to the fractions the right side of the fraction won&#8217;t change the number for</p>



<p>example if we had you know one point and then some like random binary numbers if we just kept adding</p>



<p>zeros on the right side that&#8217;s not changing the value of the number because this is the fractional</p>



<p>part however if we started adding numbers on the left side then we would make the fractional part</p>



<p>smaller and smaller and smaller so that means the zeros have to be on the right side and you can see</p>



<p>and you can see here the right side is the bottom so that means we&#8217;re going to take these numbers</p>



<p>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>final number is 0.11011 and then a bunch of zeros after that are just you know nothing</p>



<p>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>that number and we&#8217;ll just say OB to to indicate that the following is a binary</p>



<p>number because again you could have a decimal number and then have like a</p>



<p>bunch of like ones and zeros in the fraction part I guess so to make sure</p>



<p>that the reader understands what they&#8217;re seeing you&#8217;ll say OB to indicate this is</p>



<p>a binary number on exams or quizzes if you&#8217;re out there doing this for an exam</p>



<p>or a quiz keep in mind you probably want to talk to professor to make sure that</p>



<p>ob is supposed to be part of your answer they might just want this it depends anyway so 0.11011</p>



<p>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>there okay so how can we do that pretty much just start adding the fractions up so remember the</p>



<p>Remember, the first fraction that we see is going to be one half.</p>



<p>One half.</p>



<p>And the second fraction we see is going to be one fourth.</p>



<p>And then we just keep multiplying.</p>



<p>One fourth, one half.</p>



<p>Maybe I should write this in a notepad here.</p>



<p>We&#8217;ll see one half plus one fourth plus one eighth.</p>



<p>And some of these bits aren&#8217;t going to count.</p>



<p>Like, for instance, the one eighth, it&#8217;s not going to count towards the fraction.</p>



<p>But for me personally, if I forget to type one eighth,</p>



<p>I&#8217;m probably going to accidentally use it for the next position.</p>



<p>So I&#8217;m just going to type everything one at a time.</p>



<p>So let&#8217;s see, we have one, two, three, four, five, one, two, three, four.</p>



<p>So I got to do one more plus one 32nd and then multiply by the bits.</p>



<p>So say like, you know, one times that and then one times that and then zero times that</p>



<p>to basically, you know, cancel it out.</p>



<p>And then one times that and then one times that.</p>



<p>plug it all into the calculator</p>



<p>let&#8217;s see if I got that right</p>



<p>0.84375</p>



<p>so that&#8217;s how you convert</p>



<p>back from binary to decimal</p>



<p>pretty easy and then also</p>



<p>of course when you&#8217;re practicing this you want to try</p>



<p>with a bunch of different random numbers to start off with</p>



<p>you just want to be</p>



<p>careful again this process</p>



<p>could take forever if you have like</p>



<p>you know the wrong number that you</p>



<p>start with but I guess at least</p>



<p>at least when we&#8217;re converting from binary to decimal it&#8217;s going to end up resolving to something</p>



<p>uh it won&#8217;t necessarily be something that you can&#8217;t represent but you know if you start</p>



<p>up with a random number in decimal there&#8217;s a chance maybe it&#8217;s not going to work with binary</p>



<p>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>ask what if we had a complex number because we know how to do this now with just the fractional</p>



<p>now with just the fractional part but what if we had a number that was um a little bit more</p>



<p>difficult let&#8217;s say we have wait a minute you know for you know for 37 5.</p>



<p>oh i think i just accidentally did a totally different number than i wanted to on my plan</p>



<p>luckily i got the right answer okay</p>



<p>Anyway, what if we had a more complicated number?</p>



<p>Let&#8217;s see, 804, 6875.</p>



<p>Okay, so 804, 6875, but with a 45 in front of that.</p>



<p>Remember we said before that this is the whole part</p>



<p>and this is the fractional part,</p>



<p>and you just wanna do them separately</p>



<p>and then combine them afterwards.</p>



<p>So the whole part, let&#8217;s see, what is that gonna be?</p>



<p>I&#8217;m just gonna say that this is not a video</p>



<p>for whole number binary conversion.</p>



<p>This is just dealing with fractions.</p>



<p>just dealing with fractions. Find my other videos if you want to know how to convert the whole part,</p>



<p>but I&#8217;m going to say that 45 is just this number in binary. And you can double check real fast.</p>



<p>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>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>plus 32. Add that together, that&#8217;s 45. So the whole number part is pretty easy if you already know how</p>



<p>number part is pretty easy if you already know how binary conversion but now let&#8217;s convert point uh</p>



<p>zero eight zero point eight zero four whoops screenshot no thank you zero point eight oh four</p>



<p>six eight seven five so i&#8217;m gonna have to do this from scratch since this is a different number than</p>



<p>i just worked with we&#8217;ll do that multiplied by two and it&#8217;s going to be this number</p>



<p>is that really not the same number?</p>



<p>Yeah, I guess I really just did a different number.</p>



<p>Okay, so that means we&#8217;re going to have a 1 in the binary position</p>



<p>and the remaining fractional part is just going to be this.</p>



<p>Whoops, zero point that.</p>



<p>So then we take that number and bring it down.</p>



<p>Multiply it by 2.</p>



<p>Whoops, not supposed to actually bring that part down.</p>



<p>We&#8217;ll bring it into the calculator.</p>



<p>We&#8217;ll multiply it by 2.</p>



<p>actually let me get that again and subtract one just to double check myself it&#8217;s always good to</p>



<p>double check yourself then we&#8217;ll multiply this by two and then the number is going to be point</p>



<p>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>you know a one in the binary position so 0.21875 is going to be the remainder there</p>



<p>so I&#8217;m going to do minus 1 and then times 2 to make sure the calculator agrees with me whoops</p>



<p>21875 okay then I&#8217;ll do a multiply by 2 to get the next number 4 3 7 5</p>



<p>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>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>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>the binary position and we don&#8217;t subtract anything 0.875 multiply by two again times two so it&#8217;s</p>



<p>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>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>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>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>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>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>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>right remember that so that means of course the zeros are on the right side of the fractional</p>



<p>part and on the left side is going to be 0.110011</p>



<p>1100111 and then now we just have to combine those two numbers so maybe just I&#8217;ll put something</p>



<p>here indicating that this is the conversion of just that number like that now we&#8217;ll combine</p>



<p>both of those parts right so 45 was this so I&#8217;ll say maybe therefore this big number right here</p>



<p>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>part on the right side and then let me just double check my work real fast it should be</p>



<p>10110111 wait wait what no no 101101 and then 1100111 okay so that&#8217;s it we&#8217;ve converted</p>



<p>converted a complicated decimal number into binary.</p>



<p>And we can do it in the reverse, just using the same thing.</p>



<p>You know, step one, convert this number into a whole number of decimal.</p>



<p>And then step two, convert this number into a whole number,</p>



<p>sorry, a just only fractional number for decimal</p>



<p>by just getting the one half plus one fourth and so forth.</p>



<p>put them around a decimal point just for practice okay I&#8217;ll go ahead and do it</p>



<p>some of you are probably like why won&#8217;t you do it I&#8217;ll do it okay so just only</p>



<p>looking at the fractional part because that this is not a video to convert</p>



<p>whole numbers in binary and decimal but just to convert the fractional part only</p>



<p>I&#8217;m gonna do let&#8217;s see say whoops whoops whoops whoops whoops whoops maybe I need</p>



<p>Okay, so starting with just this one right here,</p>



<p>it&#8217;s going to be 1 half plus 1 fourth plus not 1 eighth, not 1 16th, a 32.</p>



<p>1 32 plus 1 over 64 plus 1 over 128.</p>



<p>0.8046875.</p>



<p>So it looks like we succeeded.</p>



<p>Okay, so now we know how to convert</p>



<p>a decimal number with a fraction</p>



<p>into a binary number with a fraction.</p>



<p>And we also know how to convert</p>



<p>a binary number with a fraction</p>



<p>to a decimal number with a fraction.</p>



<p>That feels like a long video.</p>



<p>Let&#8217;s see what it is after I cut this.</p>



<p>Thank you so much for watching.</p>



<p>I hope you learned a little bit of stuff</p>



<p>and you had a little bit of fun.</p>



<p>I will see you in the next video.</p>



<p>grow this community so we&#8217;ll be able to do more videos, longer videos, better videos,</p>



<p>or just I&#8217;ll be able to keep making videos in general. So please do me a kindness and subscribe.</p>



<p>You know, sometimes I&#8217;m sleeping in the middle of the night and I just wake up because I know</p>



<p>somebody subscribed or followed. It just wakes me up and I get filled with joy. That&#8217;s exactly what</p>



<p>happens every single time. So you could do it as a nice favor to me or you could troll me if you</p>



<p>want to just wake me up in the middle of the night, just subscribe and then I&#8217;ll just wake up.</p>



<p>I promise that&#8217;s what will happen.</p>



<p>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>which I think is also named somewhere at the bottom of this video.</p>



<p>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>the services and tutorials and things that I offer and all that good stuff.</p>



<p>And if you have a suggestion for</p>



<p>or just future videos that you want to see, please leave a comment. Or if you just want to say,</p>



<p>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>those in the middle of the night. I get, I wake up in a cold sweat and I&#8217;m like,</p>



<p>it would really, it really mean the world to me. I would really appreciate it. So again,</p>



<p>thank you so much for watching this video and enjoy the cool music as, as I fade into the</p>



<p>darkness, which is coming for us all.</p>



<p>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>
	</channel>
</rss>
