<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=Z80%3ABinary%2C_Decimal%2C_and_Hexadecimal</id>
	<title>Z80:Binary, Decimal, and Hexadecimal - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=Z80%3ABinary%2C_Decimal%2C_and_Hexadecimal"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=Z80:Binary,_Decimal,_and_Hexadecimal&amp;action=history"/>
	<updated>2026-05-13T12:12:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=Z80:Binary,_Decimal,_and_Hexadecimal&amp;diff=124&amp;oldid=prev</id>
		<title>KermMartian at 06:06, 5 February 2016</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=Z80:Binary,_Decimal,_and_Hexadecimal&amp;diff=124&amp;oldid=prev"/>
		<updated>2016-02-05T06:06:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:06, 5 February 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l97&quot;&gt;Line 97:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 97:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Go to view&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Go to view&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Change to Scientific mode (as opposed to the default &amp;quot;Standard&amp;quot; mode)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Change to Scientific mode (as opposed to the default &amp;quot;Standard&amp;quot; mode)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Choose the base of the number you want to convert by selecting either &#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;he&lt;/del&gt;&#039;&#039;, &#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;de&lt;/del&gt;&#039;&#039;, &#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;oc&lt;/del&gt;&#039;&#039;, or &#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;bi&lt;/del&gt;&#039;&#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Choose the base of the number you want to convert by selecting either &#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;hex&lt;/ins&gt;&#039;&#039;, &#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dec&lt;/ins&gt;&#039;&#039;, &#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;oct&lt;/ins&gt;&#039;&#039;, or &#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;bin&lt;/ins&gt;&#039;&#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Determine how large of a number you&amp;#039;re going to input, and adjust the panel next to it accordingly:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Determine how large of a number you&amp;#039;re going to input, and adjust the panel next to it accordingly:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Byte: Fits in 8 bits&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Byte: Fits in 8 bits&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>KermMartian</name></author>
	</entry>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=Z80:Binary,_Decimal,_and_Hexadecimal&amp;diff=67&amp;oldid=prev</id>
		<title>KermMartian: Adjusted lowercase z80 and styling</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=Z80:Binary,_Decimal,_and_Hexadecimal&amp;diff=67&amp;oldid=prev"/>
		<updated>2016-02-03T20:52:30Z</updated>

		<summary type="html">&lt;p&gt;Adjusted lowercase z80 and styling&lt;/p&gt;
&lt;a href=&quot;http://learn.cemetech.net/index.php?title=Z80:Binary,_Decimal,_and_Hexadecimal&amp;amp;diff=67&amp;amp;oldid=25&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>KermMartian</name></author>
	</entry>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=Z80:Binary,_Decimal,_and_Hexadecimal&amp;diff=25&amp;oldid=prev</id>
		<title>KermMartian: Fixed math.</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=Z80:Binary,_Decimal,_and_Hexadecimal&amp;diff=25&amp;oldid=prev"/>
		<updated>2016-02-03T06:26:38Z</updated>

		<summary type="html">&lt;p&gt;Fixed math.&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:26, 3 February 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l28&quot;&gt;Line 28:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The easier of the two, what you do is take each digit times 2 to the power of the column it is in and add it all together. Please note that the farthest right digit is the 0th digit, not the 1st digit. Here&amp;#039;s and example:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The easier of the two, what you do is take each digit times 2 to the power of the column it is in and add it all together. Please note that the farthest right digit is the 0th digit, not the 1st digit. Here&amp;#039;s and example:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Binary Number&amp;#039;&amp;#039;&amp;#039; 1001&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Binary Number&amp;#039;&amp;#039;&amp;#039; 1001&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Conversion to Decimal&#039;&#039;&#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;1*2^3 + 0*2^2 + 0*2^1 + 1*2^0=9 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Conversion to Decimal&#039;&#039;&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;1*2^3 + 0*2^2 + 0*2^1 + 1*2^0=9&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Decimal to Binary ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Decimal to Binary ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Converting back to binary is slightly more complicated. What you have to do is figure out the largest power of 2 (&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^n &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;) that is smaller or equal to than your number. Write the nth digit as a 1 and continue. You then subtract the power of 2 from the number and repeat until the decimal number equals 0 (take the result of the subtraction as the new number). If you skip over a power of two, don&#039;t forget to write a 0.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Converting back to binary is slightly more complicated. What you have to do is figure out the largest power of 2 (&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^n&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;) that is smaller or equal to than your number. Write the nth digit as a 1 and continue. You then subtract the power of 2 from the number and repeat until the decimal number equals 0 (take the result of the subtraction as the new number). If you skip over a power of two, don&#039;t forget to write a 0.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Some Useful Powers of 2&#039;&#039;&#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^0=1 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^1=2 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^2=4 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^3=8 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^4=16 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^5=32 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^6=64 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^7=128 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^8=256 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^9=512 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^10=1024 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^11=2048 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^12=4096 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^13=8192 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^14=16384 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^15=32768 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Some Useful Powers of 2&#039;&#039;&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^0=1&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^1=2&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^2=4&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^3=8&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^4=16&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^5=32&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^6=64&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^7=128&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^8=256&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^9=512&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{&lt;/ins&gt;10&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}&lt;/ins&gt;=1024&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{&lt;/ins&gt;11&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}&lt;/ins&gt;=2048&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{&lt;/ins&gt;12&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}&lt;/ins&gt;=4096&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{&lt;/ins&gt;13&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}&lt;/ins&gt;=8192&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{&lt;/ins&gt;14&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}&lt;/ins&gt;=16384&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;,&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{&lt;/ins&gt;15&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}&lt;/ins&gt;=32768&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Decimal Number&amp;#039;&amp;#039;&amp;#039; 121&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Decimal Number&amp;#039;&amp;#039;&amp;#039; 121&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Conversion to Binary&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Conversion to Binary&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;1. The largest power of 2 that works is &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^6=64 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;1. The largest power of 2 that works is &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^6=64&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;121-64= 57 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;. &#039;&#039;&#039;Binary number so far: 10000000&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;121-64= 57&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;. &#039;&#039;&#039;Binary number so far: 10000000&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;3. Next Power of 2 that works is &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$&lt;/del&gt;2^5=32 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;3. Next Power of 2 that works is &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^5=32&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;4. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;57-32=25 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;. &#039;&#039;&#039;Binary number so far: 11000000&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;4. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;57-32=25&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;. &#039;&#039;&#039;Binary number so far: 11000000&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;5. Next Power of 2 that works is &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^4=16 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;5. Next Power of 2 that works is &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^4=16&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;6. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;25-16=9 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;. &#039;&#039;&#039;Binary number so far: 11100000&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;6. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;25-16=9&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;. &#039;&#039;&#039;Binary number so far: 11100000&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;7. Next Power of 2 is &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^3=8 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;7. Next Power of 2 is &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^3=8&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;8. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;9-8=1 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;. &#039;&#039;&#039;Binary number so far: 11110000&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;8. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;9-8=1&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;. &#039;&#039;&#039;Binary number so far: 11110000&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;9. Next Power of 2 smaller that works is &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;2^0=1 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;9. Next Power of 2 smaller that works is &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;2^0=1&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;10. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;1-1=0 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;. You&#039;re done. Don&#039;t forget to write your zeros for the powers of 2 you skipped.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;10. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;1-1=0&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;. You&#039;re done. Don&#039;t forget to write your zeros for the powers of 2 you skipped.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Final answer:&amp;#039;&amp;#039;&amp;#039; 11110001&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Final answer:&amp;#039;&amp;#039;&amp;#039; 11110001&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l52&quot;&gt;Line 52:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 52:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A rather simple task, though slightly harder than converting binary to decimal. You do the same thing except make sure that when adding you don&amp;#039;t go onto the next digit until the previous digit is larger than F (15 in decimal).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A rather simple task, though slightly harder than converting binary to decimal. You do the same thing except make sure that when adding you don&amp;#039;t go onto the next digit until the previous digit is larger than F (15 in decimal).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Binary number&amp;#039;&amp;#039;&amp;#039; 11110011&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Binary number&amp;#039;&amp;#039;&amp;#039; 11110011&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Conversion to Hexadecimal&#039;&#039;&#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;1*2^7+1*2^6+1*2^5+1*2^4+0*2^3+0*2^2+1*2^1+1*2^0=F3 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Conversion to Hexadecimal&#039;&#039;&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;1*2^7+1*2^6+1*2^5+1*2^4+0*2^3+0*2^2+1*2^1+1*2^0=F3&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You&amp;#039;ll probably be asking &amp;quot;how is that easier than converting binary to decimal?&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You&amp;#039;ll probably be asking &amp;quot;how is that easier than converting binary to decimal?&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l75&quot;&gt;Line 75:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 75:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Hexadecimal to Decimal ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Hexadecimal to Decimal ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Simple. Just take the decimal equivalence of the hexadecimal digit, times it by &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;16^n &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]] &lt;/del&gt;where n equals the location the digit is in (0 being the farthest right), and add them all up.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Simple. Just take the decimal equivalence of the hexadecimal digit, times it by &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;16^n&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt; &lt;/ins&gt;where n equals the location the digit is in (0 being the farthest right), and add them all up.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Hexadecimal Number&amp;#039;&amp;#039;&amp;#039; 3BA&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Hexadecimal Number&amp;#039;&amp;#039;&amp;#039; 3BA&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Decimal Conversion&#039;&#039;&#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;3*16^2+11*16^1+10*16*0=954 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Decimal Conversion&#039;&#039;&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;3*16^2+11*16^1+10*16*0=954&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Decimal to Hexadecimal ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Decimal to Hexadecimal ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l83&quot;&gt;Line 83:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 83:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Similar to converting from binary to hexadecimal. Just don&amp;#039;t forget you need to add up to F (15) before going onto the next digit.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Similar to converting from binary to hexadecimal. Just don&amp;#039;t forget you need to add up to F (15) before going onto the next digit.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Decimal Number&amp;#039;&amp;#039;&amp;#039; 68&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Decimal Number&amp;#039;&amp;#039;&amp;#039; 68&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Hexadecimal Conversion&#039;&#039;&#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[$ &lt;/del&gt;6*A^1+8*A^0=44 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;$]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Hexadecimal Conversion&#039;&#039;&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;math&amp;gt;&lt;/ins&gt;6*A^1+8*A^0=44&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Setting up Windows Calculator to convert for you ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Setting up Windows Calculator to convert for you ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l197&quot;&gt;Line 197:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 197:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*What&amp;#039;s wrong with this?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*What&amp;#039;s wrong with this?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For solutions, see this [[answers-1 |page]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For solutions, see this [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;z80:&lt;/ins&gt;answers-1|page]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Conclusion =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Conclusion =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>KermMartian</name></author>
	</entry>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=Z80:Binary,_Decimal,_and_Hexadecimal&amp;diff=18&amp;oldid=prev</id>
		<title>KermMartian: Created page with &quot;= Existing Tutorials =  Again, there are existing tutorials that touch on this topic.  * Sigma&#039;s [http://media.taricorp.net/83pa28d/lesson/day03.html Learn Assembly in 28 days...&quot;</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=Z80:Binary,_Decimal,_and_Hexadecimal&amp;diff=18&amp;oldid=prev"/>
		<updated>2016-02-03T00:45:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Existing Tutorials =  Again, there are existing tutorials that touch on this topic.  * Sigma&amp;#039;s [http://media.taricorp.net/83pa28d/lesson/day03.html Learn Assembly in 28 days...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Existing Tutorials =&lt;br /&gt;
&lt;br /&gt;
Again, there are existing tutorials that touch on this topic.&lt;br /&gt;
&lt;br /&gt;
* Sigma&amp;#039;s [http://media.taricorp.net/83pa28d/lesson/day03.html Learn Assembly in 28 days, Day 3].&lt;br /&gt;
* Cobb&amp;#039;s [http://users.hszk.bme.hu/~pg429/z80guide/part1.htm#numbers z80 Assembly, Data and Numbers].&lt;br /&gt;
&lt;br /&gt;
If you still don&amp;#039;t understand number bases, read on.&lt;br /&gt;
&lt;br /&gt;
= The Binary Base =&lt;br /&gt;
&lt;br /&gt;
The most basic counting system you can get, it is based on just 1&amp;#039;s and 0&amp;#039;s. Each ##blue|1## or ##blue|0## is a bit, and 8 bits make up a byte. Counting in binary is related to counting in decimal. Here&amp;#039;s how: You keep counting in the units digit (farthest right) until there are no more number symbols to count. Then you increment the next digit and start over again. Here&amp;#039;s an example:&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;binary&amp;#039;&amp;#039;&amp;#039; 0,1,10,11,100,101,110&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;decimal&amp;#039;&amp;#039;&amp;#039; 0,1,2,3,4,5,6&lt;br /&gt;
&lt;br /&gt;
= The Decimal Base =&lt;br /&gt;
&lt;br /&gt;
Hopefully you know how this base works. It&amp;#039;s what you use everyday. The digits are ##blue|0,1,2,3,4,5,6,7,8,## and ##blue|9##.&lt;br /&gt;
&lt;br /&gt;
= The Hexadecimal Base =&lt;br /&gt;
&lt;br /&gt;
Counting in ones and zeros can be a pain, and converting between decimal and binary is no better. So, to help sort ease the pain of programmers we&amp;#039;ll use the hexadecimal base. This base uses the digits ##blue|0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,## and ##blue|F##. Again, counting similar binary and decimal.&lt;br /&gt;
&lt;br /&gt;
= Conversions of Binary, Decimal, and hexadecimal =&lt;br /&gt;
&lt;br /&gt;
== Binary to Decimal ==&lt;br /&gt;
&lt;br /&gt;
The easier of the two, what you do is take each digit times 2 to the power of the column it is in and add it all together. Please note that the farthest right digit is the 0th digit, not the 1st digit. Here&amp;#039;s and example:&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Binary Number&amp;#039;&amp;#039;&amp;#039; 1001&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Conversion to Decimal&amp;#039;&amp;#039;&amp;#039; [[$ 1*2^3 + 0*2^2 + 0*2^1 + 1*2^0=9 $]]&lt;br /&gt;
&lt;br /&gt;
== Decimal to Binary ==&lt;br /&gt;
&lt;br /&gt;
Converting back to binary is slightly more complicated. What you have to do is figure out the largest power of 2 ([[$ 2^n $]]) that is smaller or equal to than your number. Write the nth digit as a 1 and continue. You then subtract the power of 2 from the number and repeat until the decimal number equals 0 (take the result of the subtraction as the new number). If you skip over a power of two, don&amp;#039;t forget to write a 0.&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Some Useful Powers of 2&amp;#039;&amp;#039;&amp;#039; [[$ 2^0=1 $]],[[$ 2^1=2 $]],[[$ 2^2=4 $]],[[$ 2^3=8 $]],[[$ 2^4=16 $]],[[$ 2^5=32 $]],[[$ 2^6=64 $]],[[$ 2^7=128 $]],[[$ 2^8=256 $]],[[$ 2^9=512 $]],[[$ 2^10=1024 $]],[[$ 2^11=2048 $]],[[$ 2^12=4096 $]],[[$ 2^13=8192 $]],[[$ 2^14=16384 $]],[[$ 2^15=32768 $]]&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Decimal Number&amp;#039;&amp;#039;&amp;#039; 121&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Conversion to Binary&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
1. The largest power of 2 that works is [[$ 2^6=64 $]].&lt;br /&gt;
2. [[$ 121-64= 57 $]]. &amp;#039;&amp;#039;&amp;#039;Binary number so far: 10000000&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
3. Next Power of 2 that works is [[$2^5=32 $]].&lt;br /&gt;
4. [[$ 57-32=25 $]]. &amp;#039;&amp;#039;&amp;#039;Binary number so far: 11000000&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
5. Next Power of 2 that works is [[$ 2^4=16 $]].&lt;br /&gt;
6. [[$ 25-16=9 $]]. &amp;#039;&amp;#039;&amp;#039;Binary number so far: 11100000&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
7. Next Power of 2 is [[$ 2^3=8 $]].&lt;br /&gt;
8. [[$ 9-8=1 $]]. &amp;#039;&amp;#039;&amp;#039;Binary number so far: 11110000&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
9. Next Power of 2 smaller that works is [[$ 2^0=1 $]].&lt;br /&gt;
10. [[$ 1-1=0 $]]. You&amp;#039;re done. Don&amp;#039;t forget to write your zeros for the powers of 2 you skipped.&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Final answer:&amp;#039;&amp;#039;&amp;#039; 11110001&lt;br /&gt;
&lt;br /&gt;
== Binary to Hexadecimal ==&lt;br /&gt;
&lt;br /&gt;
A rather simple task, though slightly harder than converting binary to decimal. You do the same thing except make sure that when adding you don&amp;#039;t go onto the next digit until the previous digit is larger than F (15 in decimal).&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Binary number&amp;#039;&amp;#039;&amp;#039; 11110011&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Conversion to Hexadecimal&amp;#039;&amp;#039;&amp;#039; [[$ 1*2^7+1*2^6+1*2^5+1*2^4+0*2^3+0*2^2+1*2^1+1*2^0=F3 $]]&lt;br /&gt;
&lt;br /&gt;
You&amp;#039;ll probably be asking &amp;quot;how is that easier than converting binary to decimal?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s your answer: If you haven&amp;#039;t notice yet, but each digit in hexadecimal is represented by 4 digits in binary. What does this mean? It means that you only have to compute hexadecimal a nibble (4 bits) at a time. So:&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Previous number split up into nibbles&amp;#039;&amp;#039;&amp;#039; 1111 0011&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;First nibble (right one)&amp;#039;&amp;#039;&amp;#039; 0011=3&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Second nibble&amp;#039;&amp;#039;&amp;#039; 1111=F&lt;br /&gt;
&lt;br /&gt;
== Hexadecimal to Binary ==&lt;br /&gt;
&lt;br /&gt;
Another simple task, again we&amp;#039;ll use the notion of nibbles to help us. Take each hexadecimal digit and convert it to decimal (A=10,B=11,C=12,D=13,E=14,F=15). Then convert that number to binary.&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Hexadecimal Number&amp;#039;&amp;#039;&amp;#039; E7&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;First digit&amp;#039;&amp;#039;&amp;#039; 7&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Decimal equivalence&amp;#039;&amp;#039;&amp;#039; 7&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Binary conversion&amp;#039;&amp;#039;&amp;#039; 7-&amp;gt;0111&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Second digit&amp;#039;&amp;#039;&amp;#039; E&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Decimal equivalence&amp;#039;&amp;#039;&amp;#039; 14&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Binary conversion&amp;#039;&amp;#039;&amp;#039; 14-&amp;gt;1110&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Final answer&amp;#039;&amp;#039;&amp;#039; 11100111&lt;br /&gt;
&lt;br /&gt;
== Hexadecimal to Decimal ==&lt;br /&gt;
&lt;br /&gt;
Simple. Just take the decimal equivalence of the hexadecimal digit, times it by [[$ 16^n $]] where n equals the location the digit is in (0 being the farthest right), and add them all up.&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Hexadecimal Number&amp;#039;&amp;#039;&amp;#039; 3BA&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Decimal Conversion&amp;#039;&amp;#039;&amp;#039; [[$ 3*16^2+11*16^1+10*16*0=954 $]]&lt;br /&gt;
&lt;br /&gt;
== Decimal to Hexadecimal ==&lt;br /&gt;
&lt;br /&gt;
Similar to converting from binary to hexadecimal. Just don&amp;#039;t forget you need to add up to F (15) before going onto the next digit.&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Decimal Number&amp;#039;&amp;#039;&amp;#039; 68&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Hexadecimal Conversion&amp;#039;&amp;#039;&amp;#039; [[$ 6*A^1+8*A^0=44 $]]&lt;br /&gt;
&lt;br /&gt;
== Setting up Windows Calculator to convert for you ==&lt;br /&gt;
&lt;br /&gt;
If you didn&amp;#039;t already know, you can use Windows Calculator to convert to certain bases. Here&amp;#039;s how you set it up:&lt;br /&gt;
&lt;br /&gt;
* Go to view&lt;br /&gt;
* Change to Scientific mode (as opposed to the default &amp;quot;Standard&amp;quot; mode)&lt;br /&gt;
* Choose the base of the number you want to convert by selecting either &amp;#039;&amp;#039;he&amp;#039;&amp;#039;, &amp;#039;&amp;#039;de&amp;#039;&amp;#039;, &amp;#039;&amp;#039;oc&amp;#039;&amp;#039;, or &amp;#039;&amp;#039;bi&amp;#039;&amp;#039;.&lt;br /&gt;
* Determine how large of a number you&amp;#039;re going to input, and adjust the panel next to it accordingly:&lt;br /&gt;
byte: Fits in 8 bits&lt;br /&gt;
word: Fits in 16 bits&lt;br /&gt;
Dword: Fits in 32 bits&lt;br /&gt;
Qword: Fits in 64 bits&lt;br /&gt;
* Type in your number&lt;br /&gt;
* Click on the base you want to convert to.&lt;br /&gt;
* The number will be changed to the equivalent number for that base&lt;br /&gt;
&lt;br /&gt;
= Common notation =&lt;br /&gt;
&lt;br /&gt;
How do you distinguish one number base from other base numbers? The compiler has 2 ways:&lt;br /&gt;
&lt;br /&gt;
== Denote before ==&lt;br /&gt;
&lt;br /&gt;
Use a symbol to denote the base of the number. &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;binary&amp;#039;&amp;#039;&amp;#039; %&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;hexadecimal&amp;#039;&amp;#039;&amp;#039; $&lt;br /&gt;
&lt;br /&gt;
Note that decimal has no pre-denote form.&lt;br /&gt;
&lt;br /&gt;
== Denote after ==&lt;br /&gt;
&lt;br /&gt;
Use a symbol after to denote the base of the number.&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;binary&amp;#039;&amp;#039;&amp;#039; b&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;decimal&amp;#039;&amp;#039;&amp;#039; d&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;hexadecimal&amp;#039;&amp;#039;&amp;#039; h&lt;br /&gt;
&lt;br /&gt;
Note that if you&amp;#039;re using this method with hexadecimal, it is important that the first digit is not a letter (A,B,C,D,E, or F). If necessary, add a 0 to the front.&lt;br /&gt;
&lt;br /&gt;
Just to save you some trouble, if you don&amp;#039;t put a denotation for a number the compiler will assume that it is a decimal number.&lt;br /&gt;
&lt;br /&gt;
= Review =&lt;br /&gt;
&lt;br /&gt;
Here are some questions to make sure that you really understand this. If not, perhaps you should  re-read this section.&lt;br /&gt;
&lt;br /&gt;
== Convert the following numbers ==&lt;br /&gt;
&lt;br /&gt;
Don&amp;#039;t use a base converter, but a calculator is alright if you need to multiply certain things.&lt;br /&gt;
&lt;br /&gt;
== Binary to Decimal ==&lt;br /&gt;
&lt;br /&gt;
1. 1110&lt;br /&gt;
2. 11001001&lt;br /&gt;
3. 110101011000&lt;br /&gt;
4. 1111&lt;br /&gt;
5. 10001000&lt;br /&gt;
&lt;br /&gt;
== Binary to Hexadecimal ==&lt;br /&gt;
&lt;br /&gt;
1. 1001&lt;br /&gt;
2. 10101010&lt;br /&gt;
3. 10011101&lt;br /&gt;
4. 1100&lt;br /&gt;
5. 10000110&lt;br /&gt;
&lt;br /&gt;
== Decimal to Binary ==&lt;br /&gt;
&lt;br /&gt;
1. 10&lt;br /&gt;
2. 36&lt;br /&gt;
3. 57&lt;br /&gt;
4. 184&lt;br /&gt;
5. 376&lt;br /&gt;
&lt;br /&gt;
== Decimal to Hexadecimal ==&lt;br /&gt;
&lt;br /&gt;
1. 91&lt;br /&gt;
2. 100&lt;br /&gt;
3. 852&lt;br /&gt;
4. 4533&lt;br /&gt;
5. 424&lt;br /&gt;
&lt;br /&gt;
== Hexadecimal to Binary ==&lt;br /&gt;
&lt;br /&gt;
1. 10&lt;br /&gt;
2. AB&lt;br /&gt;
3. 8F&lt;br /&gt;
4. 3E&lt;br /&gt;
5. B7&lt;br /&gt;
&lt;br /&gt;
== Hexadecimal to Decimal ==&lt;br /&gt;
&lt;br /&gt;
1. 4&lt;br /&gt;
2. F8&lt;br /&gt;
3. EB&lt;br /&gt;
4. D1&lt;br /&gt;
5. 97&lt;br /&gt;
&lt;br /&gt;
== Denotations ==&lt;br /&gt;
&lt;br /&gt;
Identify the following numbers as binary, decimal, or hexadecimal according the the denotation.&lt;br /&gt;
&lt;br /&gt;
1. %10001110&lt;br /&gt;
2. 1011&lt;br /&gt;
3. $100101&lt;br /&gt;
4. 10h&lt;br /&gt;
5. 1111b&lt;br /&gt;
6. 11&lt;br /&gt;
*7. AEh&lt;br /&gt;
8. 54d&lt;br /&gt;
9. %10010010011&lt;br /&gt;
10. 100000000001h&lt;br /&gt;
&lt;br /&gt;
*What&amp;#039;s wrong with this?&lt;br /&gt;
&lt;br /&gt;
For solutions, see this [[answers-1 |page]].&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
&lt;br /&gt;
It takes a lot of practice to get good at converting between bases. Although you could just use Windows calculator to convert between bases, it&amp;#039;s still useful to know how it&amp;#039;s done by hand. If used correctly, bases and converting between bases will make programming as well as understanding other people&amp;#039;s code a lot easier.&lt;br /&gt;
&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
[[Category:z80 Assembly]]&lt;br /&gt;
[[Category:z80 Heaven]]&lt;/div&gt;</summary>
		<author><name>KermMartian</name></author>
	</entry>
</feed>