{"id":1571,"date":"2020-11-14T15:34:00","date_gmt":"2020-11-14T15:34:00","guid":{"rendered":"https:\/\/computerscienced.co.uk\/site\/?page_id=1571"},"modified":"2023-01-01T20:48:45","modified_gmt":"2023-01-01T20:48:45","slug":"how-to-hexadecimal-to-denary-conversion","status":"publish","type":"page","link":"https:\/\/computerscienced.co.uk\/site\/hexadecimal-conversion\/how-to-hexadecimal-to-denary-conversion\/","title":{"rendered":"How to &#8211; Hexadecimal to Denary Conversion"},"content":{"rendered":"\n<p>Converting hexadecimal into decimal (denary) is very simple. All we need is to remember that hexadecimal is a base 16 number.\u00a0 This means that each number column can contain 16 characters.\u00a0 Hexadecimal goes from 0 to F:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Decimal Number<\/strong><\/td><td><strong>Hexadecimal Number<\/strong><\/td><\/tr><tr><td>0<\/td><td>0<\/td><\/tr><tr><td>1<\/td><td>1<\/td><\/tr><tr><td>2<\/td><td>2<\/td><\/tr><tr><td>3<\/td><td>3<\/td><\/tr><tr><td>4<\/td><td>4<\/td><\/tr><tr><td>5<\/td><td>5<\/td><\/tr><tr><td>6<\/td><td>6<\/td><\/tr><tr><td>7<\/td><td>7<\/td><\/tr><tr><td>8<\/td><td>8<\/td><\/tr><tr><td>9<\/td><td>9<\/td><\/tr><tr><td>10<\/td><td>A<\/td><\/tr><tr><td>11<\/td><td>B<\/td><\/tr><tr><td>12<\/td><td>C<\/td><\/tr><tr><td>13<\/td><td>D<\/td><\/tr><tr><td>14<\/td><td>E<\/td><\/tr><tr><td>15<\/td><td>F<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>EG<\/strong><\/p>\n\n\n\n<p>Using the table &#8211; <strong>7 in hex is 7 in decimal.<\/strong><\/p>\n\n\n\n<p>Using the table &#8211; <strong>A in hex is 10 in decimal<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">2 digit Hexadecimal to Denary Conversion<\/h1>\n\n\n\n<p>In GCSE computer science you will be expected to convert 2 digit hexadecimal into denary.&nbsp; Again we need to remember that hexadecimal is a base 16 number and each number column can go from 0-9 and A-F.&nbsp;<\/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\">Example 1<\/h2>\n\n\n\n<p><strong>Convert hexadecimal number A2 into Denary<\/strong><\/p>\n\n\n\n<p>Put the hexadecimal number into a table with a 16 on the top left and a 1 on the top right.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>16<\/strong><\/td><td><strong>1<\/strong><\/td><\/tr><tr><td>A<\/td><td>2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>We need to convert our A into a decimal number.\u00a0 Anytime there is a letter in either of the columns, we should convert it into its associated number.  Using our table, A in hex is 10 in denary.\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>16<\/strong><\/td><td><strong>1<\/strong><\/td><\/tr><tr><td>A = 10<\/td><td>2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>We now multiply the top column number (the 16 and the 1) by the number on the bottom for each column:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>16<\/strong><\/td><td><strong>1<\/strong><\/td><\/tr><tr><td>A = 10<\/td><td>2<\/td><\/tr><tr><td>16 x 10<\/td><td>1 x 2<\/td><\/tr><tr><td>= 160<\/td><td>= 2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The final step is to add the 2 columns together<\/p>\n\n\n\n<p><strong>160 + 2 = 162<\/strong><\/p>\n\n\n\n<p><strong>A2 = 162 in denary.&nbsp;<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Example 2<\/h2>\n\n\n\n<p><strong>Convert hexadecimal number 28 into Denary<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>16<\/strong><\/td><td><strong>1<\/strong><\/td><\/tr><tr><td>2<\/td><td>8<\/td><\/tr><tr><td>16 x 2<\/td><td>1 x 8<\/td><\/tr><tr><td>= 32<\/td><td>= 8<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>32 + 8 = 40<\/strong><\/p>\n\n\n\n<p><strong>28 = 40 in denary<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Converting hexadecimal into decimal (denary) is very simple. All we need is to remember that hexadecimal is a base 16&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2739,"parent":956,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"disable_featured_image":true,"footnotes":""},"class_list":["post-1571","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\/1571","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=1571"}],"version-history":[{"count":3,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/1571\/revisions"}],"predecessor-version":[{"id":6149,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/1571\/revisions\/6149"}],"up":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/956"}],"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=1571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}