{"id":1561,"date":"2020-11-01T14:26:58","date_gmt":"2020-11-01T14:26:58","guid":{"rendered":"https:\/\/computerscienced.co.uk\/site\/?page_id=1561"},"modified":"2023-01-01T20:32:36","modified_gmt":"2023-01-01T20:32:36","slug":"how-to-denary-to-binary","status":"publish","type":"page","link":"https:\/\/computerscienced.co.uk\/site\/binary\/denary-to-binary\/how-to-denary-to-binary\/","title":{"rendered":"How to &#8211; Denary to Binary"},"content":{"rendered":"\n<p>Converting decimal (denary) into binary is very simple and can be done by simply remembering the following numbers:<\/p>\n\n\n\n<p><strong>128, 64, 32, 16, 8, 4, 2, 1<\/strong><\/p>\n\n\n\n<p><strong>Have you noticed anything about these numbers?<\/strong><\/p>\n\n\n\n<p>From right to left they are doubling every time!<\/p>\n\n\n\n<p><strong>So why do we need to remember these numbers?<\/strong><\/p>\n\n\n\n<p>Let me show you with an example.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Example 1. <\/strong><\/h2>\n\n\n\n<p>Convert denary number 198 into binary.&nbsp;<\/p>\n\n\n\n<p>All we need to do to convert this denary number is draw out a table.&nbsp; Put the numbers, 128, 64, 32 etc from above into the top row.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>128<\/strong><\/td><td><strong>64<\/strong><\/td><td><strong>32<\/strong><\/td><td><strong>16<\/strong><\/td><td><strong>8<\/strong><\/td><td><strong>4<\/strong><\/td><td><strong>2<\/strong><\/td><td><strong>1<\/strong><\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>We start from the far left and ask &#8220;can 128 be taken away from 198 without leaving a negative number?&#8221; As 198 is bigger than 128 we put a 1 under 128 and subtract 128 from 198; <\/p>\n\n\n\n<p><strong>198 \u2013 128 = 70<\/strong>.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>128<\/strong><\/td><td><strong>64<\/strong><\/td><td><strong>32<\/strong><\/td><td><strong>16<\/strong><\/td><td><strong>8<\/strong><\/td><td><strong>4<\/strong><\/td><td><strong>2<\/strong><\/td><td><strong>1<\/strong><\/td><\/tr><tr><td>1<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td><strong>198 &#8211; 128 =<\/strong> 70<br>Remainder 70<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p>We now carry the remainder across to the next column and ask the same \u2013 &#8220;can 64 be taken away from 70 without leaving a negative number?&#8221;&nbsp; As 70 is bigger than 64 we put a 1 under 64 and subtract 64 from 70; <\/p>\n\n\n\n<p><strong>70 \u2013 64 = 6.<\/strong>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>128<\/strong><\/td><td><strong>64<\/strong><\/td><td><strong>32<\/strong><\/td><td><strong>16<\/strong><\/td><td><strong>8<\/strong><\/td><td><strong>4<\/strong><\/td><td><strong>2<\/strong><\/td><td><strong>1<\/strong><\/td><\/tr><tr><td>1<\/td><td>1<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>Remainder 70<\/td><td><strong>70 &#8211; 64 = 6<\/strong><br>Remainder 6<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p>We now carry the remainder across to the next column and ask the same \u2013 &#8220;can 32 be taken away from 6 without leaving a negative number?&#8221; As 6 is not bigger than 32 we put a 0 under 32 and carry 6 across to the next column.&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>128<\/strong><\/td><td><strong>64<\/strong><\/td><td><strong>32<\/strong><\/td><td><strong>16<\/strong><\/td><td><strong>8<\/strong><\/td><td><strong>4<\/strong><\/td><td><strong>2<\/strong><\/td><td><strong>1<\/strong><\/td><\/tr><tr><td>1<\/td><td>1<\/td><td>0<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>Remainder 70<\/td><td>Remainder 6<\/td><td>Remainder 6<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p>We now carry the remainder across to the next column and ask the same \u2013 &#8220;can 16 be taken away from 6 without leaving a negative number?&#8221; As 6 is not bigger than 16 we put a 0 under 16 and carry 6 across to the next column.&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>128<\/strong><\/td><td><strong>64<\/strong><\/td><td><strong>32<\/strong><\/td><td><strong>16<\/strong><\/td><td><strong>8<\/strong><\/td><td><strong>4<\/strong><\/td><td><strong>2<\/strong><\/td><td><strong>1<\/strong><\/td><\/tr><tr><td>1<\/td><td>1<\/td><td>0<\/td><td>0<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>Remainder 70<\/td><td>Remainder 6<\/td><td>Remainder 6<\/td><td>Remainder 6<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p>We now carry the remainder across to the next column and ask the same &#8211; &#8220;can 8 be taken away from 6 without leaving a negative number?&#8221; As 6 is not bigger than 8 we put a 0 under 8 and carry 6 across to the next column.&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>128<\/strong><\/td><td><strong>64<\/strong><\/td><td><strong>32<\/strong><\/td><td><strong>16<\/strong><\/td><td><strong>8<\/strong><\/td><td><strong>4<\/strong><\/td><td><strong>2<\/strong><\/td><td><strong>1<\/strong><\/td><\/tr><tr><td>1<\/td><td>1<\/td><td>0<\/td><td>0<\/td><td>0<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>Remainder 70<\/td><td>Remainder 6<\/td><td>Remainder 6<\/td><td>Remainder 6<\/td><td>Remainder 6<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p>We now carry the remainder across to the next column and ask the same \u2013 &#8220;can 4 be taken away from 6 without leaving a negative number?&#8221;&nbsp; As 6 is bigger than 4 we put a 1 under 4 and subtract 4 from 6; <\/p>\n\n\n\n<p><strong>6 \u2013 4 = 2.&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>128<\/strong><\/td><td><strong>64<\/strong><\/td><td><strong>32<\/strong><\/td><td><strong>16<\/strong><\/td><td><strong>8<\/strong><\/td><td><strong>4<\/strong><\/td><td><strong>2<\/strong><\/td><td><strong>1<\/strong><\/td><\/tr><tr><td>1<\/td><td>1<\/td><td>0<\/td><td>0<\/td><td>0<\/td><td>1<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>Remainder 70<\/td><td>Remainder 6<\/td><td>Remainder 6<\/td><td>Remainder 6<\/td><td>Remainder 6<\/td><td><strong>6 &#8211; 4 = 2<\/strong><br>Remainder 2<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p>We now carry the remainder across to the next column and ask the same \u2013 &#8220;can 2 be taken away from 2 without leaving a negative number?&#8221;\u00a0 As 2 can be taken away from 2 without leaving a negative we put a 1 under 2 and subtract 2 from 2; <\/p>\n\n\n\n<p><strong>2 \u2013 2 = 0.&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>128<\/strong><\/td><td><strong>64<\/strong><\/td><td><strong>32<\/strong><\/td><td><strong>16<\/strong><\/td><td><strong>8<\/strong><\/td><td><strong>4<\/strong><\/td><td><strong>2<\/strong><\/td><td><strong>1<\/strong><\/td><\/tr><tr><td>1<\/td><td>1<\/td><td>0<\/td><td>0<\/td><td>0<\/td><td>1<\/td><td>1<\/td><td>&nbsp;<\/td><\/tr><tr><td>Remainder 70<\/td><td>Remainder 6<\/td><td>Remainder 6<\/td><td>Remainder 6<\/td><td>Remainder 6<\/td><td>Remainder 2<\/td><td><strong>2 &#8211; 2 = 0<\/strong><br>Remainder 0<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p>As we now have 0 left our calculation must be complete.&nbsp; The remaining column <strong>must<\/strong> contain a 0.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>128<\/strong><\/td><td><strong>64<\/strong><\/td><td><strong>32<\/strong><\/td><td><strong>16<\/strong><\/td><td><strong>8<\/strong><\/td><td><strong>4<\/strong><\/td><td><strong>2<\/strong><\/td><td><strong>1<\/strong><\/td><\/tr><tr><td>1<\/td><td>1<\/td><td>0<\/td><td>0<\/td><td>0<\/td><td>1<\/td><td>1<\/td><td>0<\/td><\/tr><tr><td>Remainder 70<\/td><td>Remainder 6<\/td><td>Remainder 6<\/td><td>Remainder 6<\/td><td>Remainder 6<\/td><td>Remainder 2<\/td><td>Remainder 0<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"has-border-background-color has-background\"><strong>198 in binary is 11000110<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Remember<\/h2>\n\n\n\n<p>Work from the left to the right &#8211; it doesn&#8217;t work the other way around!<\/p>\n\n\n\n<p>The numbers on the top row double each time from right to left don&#8217;t write them in the wrong order.<\/p>\n\n\n\n<p>Ensure you learn the method &#8211; you will get conversions on an exam paper and they are easy marks.    <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Converting decimal (denary) into binary is very simple and can be done by simply remembering the following numbers: 128, 64,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2739,"parent":879,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"disable_featured_image":true,"footnotes":""},"class_list":["post-1561","page","type-page","status-publish","has-post-thumbnail","hentry"],"blog_post_layout_featured_media_urls":{"thumbnail":["https:\/\/computerscienced.co.uk\/site\/wp-content\/uploads\/2021\/10\/undraw_Share_opinion_re_4qk7.svg",150,150,true],"full":["https:\/\/computerscienced.co.uk\/site\/wp-content\/uploads\/2021\/10\/undraw_Share_opinion_re_4qk7.svg",965,727,false]},"categories_names":null,"comments_number":"0","_links":{"self":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/1561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/comments?post=1561"}],"version-history":[{"count":4,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/1561\/revisions"}],"predecessor-version":[{"id":6145,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/1561\/revisions\/6145"}],"up":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/879"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/media\/2739"}],"wp:attachment":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/media?parent=1561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}