{"id":924,"date":"2022-01-31T17:35:03","date_gmt":"2022-01-31T17:35:03","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=924"},"modified":"2022-01-31T17:35:03","modified_gmt":"2022-01-31T17:35:03","slug":"binary-numbers","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/01\/31\/binary-numbers\/","title":{"rendered":"Binary Numbers"},"content":{"rendered":"\n<p><strong>Summary <\/strong><\/p>\n\n\n\n<p>The binary number system is a base-2 number system. This means it only has two numbers: 0 and 1. The number system that we normally use is the decimal number system. It has 10 numbers: 0-9. <\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"why-use-binary-numbers\">Why use binary numbers? <\/h5>\n\n\n\n<p>Binary numbers are very useful in electronics and computer systems. Digital electronics can easily work with a sort of &#8220;on&#8221; or &#8220;off&#8221; system where &#8220;on&#8221; is a 1 and &#8220;off&#8221; is a zero. Often times the 1 is a &#8220;high&#8221; voltage, while the 0 is a &#8220;low&#8221; voltage or ground. <\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"how-do-binary-numbers-work\">How do binary numbers work? <\/h5>\n\n\n\n<p>Binary numbers only use the numbers 1 and 0. In a binary number each &#8220;place&#8221; represents a power of 2.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"for-example\"> For example: <\/h4>\n\n\n\n<p>1 = 2<sup>0<\/sup> = 1 <\/p>\n\n\n\n<p>10 = 2<sup>1<\/sup> = 2 <\/p>\n\n\n\n<p>100 = 2<sup>2<\/sup> = 4 <\/p>\n\n\n\n<p>1000 = 2<sup>3<\/sup> = 8 <\/p>\n\n\n\n<p>10000 = 2<sup>4<\/sup> = 16<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"converting-from-binary-to-decimal\">Converting from Binary to Decimal<\/h2>\n\n\n\n<p> If you want to convert a number from binary to decimal, you can add up the &#8220;places&#8221; that we showed above. Each place that has a &#8220;1&#8221; represents a power of 2, starting with the 0s place. <\/p>\n\n\n\n<p>Examples: <\/p>\n\n\n\n<p>101 binary = 4 + 0 + 1 = 5 decimal<\/p>\n\n\n\n<p> 11110 binary = 16 + 8 + 4 + 2 + 0 = 30 decimal <\/p>\n\n\n\n<p>10001 binary = 16 + 0 + 0 + 0 + 1 = 17 decimal <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"converting-from-decimal-to-binary\">Converting from Decimal to Binary <\/h2>\n\n\n\n<p>Converting a decimal number to a binary number can be more difficult. It helps if you know the powers of two (1, 2, 4, 8, 16, 32, 64, 128, 256, \u2026). <\/p>\n\n\n\n<ul><li>First subtract the largest power of two possible from the number you are converting. <\/li><li>Then put a &#8220;1&#8221; in that place of the binary number.<\/li><li> Next, you subtract the next biggest power of two possible from the remainder. You put a 1 in that position. <\/li><li>You keep repeating the above until there is no remainder left. <\/li><li>All the places without a &#8220;1&#8221; get a &#8220;0&#8221;. <\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"example\">Example:<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"what-is-27-decimal-in-binary\"> What is 27 decimal in binary?<\/h5>\n\n\n\n<ol><li> What is the largest power of 2 that is less than or equal to 27? That is 16. So subtract 16 from 27. 27 &#8211; 16 = 11 <\/li><li> Put a 1 in the 16&#8217;s place. That is 2<sup>4<\/sup>, which is the 5th place because it starts with the 0&#8217;s place. So we have 1xxxx so far. <\/li><li> Now do the same for the remainder, 11. The largest power of two number we can subtract from 11 is 2<sup>3<\/sup>, or 8. So, 11 &#8211; 8 = 3. <\/li><li>Put a 1 in the 8&#8217;s place. Now we have 11xxx. <\/li><li>Next is to subtract 2<sup>1<\/sup>, or 2 which is 2 -1 = 1. <\/li><li>11x1x <\/li><li> Lastly is 1-1 = 0. <\/li><li>11&#215;11 9. Put zero&#8217;s in the places without 1&#8217;s and we get the answer = 11011. <\/li><\/ol>\n\n\n\n<p><\/p>\n\n\n\n<p>Other examples:<\/p>\n\n\n\n<p> 14 = 8 + 4 + 2 + 0 = 1110<\/p>\n\n\n\n<p> 21 = 16 + 0 + 4 + 0 + 1 = 10101 <\/p>\n\n\n\n<p>44 = 32 + 0 + 8 + 4 + 0 + 0 = 101100 <\/p>\n\n\n\n<p>Helpful Binary Tables First 10<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.ducksters.com\/kidsmath\/binary_first_10_numbers.gif\" alt=\"\"\/><\/figure>\n\n\n\n<p> Numbers Binary Position Values in Decimal (powers of 2)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.ducksters.com\/kidsmath\/binary_place_value.gif\" alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Summary The binary number system is a base-2 number system. This means it only has two numbers: 0 and 1. The number system that we normally use is the decimal number system. It has 10 numbers: 0-9. Why use binary numbers? Binary numbers are very useful in electronics and computer systems. Digital electronics can easily [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[565],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/924"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=924"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/924\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}