{"id":2382,"date":"2013-09-02T16:23:23","date_gmt":"2013-09-02T16:23:23","guid":{"rendered":"http:\/\/www.oracletutoring.ca\/blog\/?p=2382"},"modified":"2013-09-02T16:23:23","modified_gmt":"2013-09-02T16:23:23","slug":"math-hexadecimal-numbers","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/math-hexadecimal-numbers\/","title":{"rendered":"Math:  hexadecimal numbers"},"content":{"rendered":"<h1>Tutoring math, this is an interesting concept. \u00a0Its common application is in computer science.<\/h1>\n<p>You might have seen numbers like c6 or e9. \u00a0Depending on the context, these may be hexadecimal (aka hex) numbers. \u00a0The hexadecimal system is base 16. \u00a0It uses the following notation:<\/p>\n<table>\n<tr>\n<td><strong>decimal<\/strong><\/td>\n<td><strong>hex<\/strong><\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>7<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>8<\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td>9<\/td>\n<\/tr>\n<tr>\n<td>10<\/td>\n<td>a<\/td>\n<\/tr>\n<tr>\n<td>11<\/td>\n<td>b<\/td>\n<\/tr>\n<tr>\n<td>12<\/td>\n<td>c<\/td>\n<\/tr>\n<tr>\n<td>13<\/td>\n<td>d<\/td>\n<\/tr>\n<tr>\n<td>14<\/td>\n<td>e<\/td>\n<\/tr>\n<tr>\n<td>15<\/td>\n<td>f<\/td>\n<\/tr>\n<\/table>\n<p>Since base 16 requires numbers that would be two digits in base ten, the number system is simply expanded to 15 using letters.<\/p>\n<p>Continuing the logic from my <a href=\"?p=2361\">previous post<\/a>, we see that c6 means<\/p>\n<p>12&#215;16<sup><span style=\"font-size:medium\">1<\/span><\/sup>+6&#215;16<sup><span style=\"font-size:medium\">0<\/span><\/sup>=12&#215;16 + 6&#215;1=192 + 6=198.  <\/p>\n<p>So, c6 in hex is 198 in decimal.<\/p>\n<p>Since 16<sup><span style=\"font-size:medium\">2<\/span><\/sup>=256, you can represent any number from zero to 255 with two digits in hex.  ff=255, as follows:<\/p>\n<p>ff=15&#215;16<sup><span style=\"font-size:medium\">1<\/span><\/sup>+15&#215;16<sup><span style=\"font-size:medium\">0<\/span><\/sup>=240+15=255.<\/p>\n<p>Jack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tutoring math, this is an interesting concept. \u00a0Its common application is in computer science. You might have seen numbers like c6 or e9. \u00a0Depending on the context, these may be hexadecimal (aka hex) numbers. \u00a0The hexadecimal system is base 16. &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/math-hexadecimal-numbers\/\"> <span class=\"screen-reader-text\">Math:  hexadecimal numbers<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2382","post","type-post","status-publish","format-standard","hentry","category-math"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/2382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=2382"}],"version-history":[{"count":10,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/2382\/revisions"}],"predecessor-version":[{"id":2392,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/2382\/revisions\/2392"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=2382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=2382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=2382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}