{"id":47591,"date":"2024-07-17T16:18:18","date_gmt":"2024-07-17T16:18:18","guid":{"rendered":"https:\/\/www.oracletutoring.ca\/blog\/?p=47591"},"modified":"2024-07-17T16:19:04","modified_gmt":"2024-07-17T16:19:04","slug":"computer-science-what-is-0x-hex-notation","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/computer-science-what-is-0x-hex-notation\/","title":{"rendered":"Computer science: what is 0x (hex notation)?"},"content":{"rendered":"\n<h2>Tutoring math and computer science, you see hex occasionally. The tutor mentions it.<\/h2>\n<p>\nA number like 0x76 or 0xea means it&#8217;s hex notation, or base 16. Therefore, 0x76 doesn&#8217;t mean 76; it actually means 7&#215;16<sup>1<\/sup> + 6&#215;16<sup>0<\/sup>, or 118. Since hex needs single digits to represent numbers as high as 15, a means 10, b means 11,&#8230;f means 15.<\/p>\n<p>\nIt seems to me I used to see hex more often, ten or fifteen years ago, than I do now. Mac addresses seem to still use it, and assembly language did (does). Some color descriptions still use it as well: for instance, #ff0000 is red in html (or css).<\/p>\n<p>\nSource:<\/p>\n<p><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/named-color\">mozilla.org<\/a><\/p>\n<p><a href=\"https:\/\/kb.iu.edu\/d\/afdl\">indiana university<\/a><\/p>\nJack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC. \n","protected":false},"excerpt":{"rendered":"<p>Tutoring math and computer science, you see hex occasionally. The tutor mentions it. A number like 0x76 or 0xea means it&#8217;s hex notation, or base 16. Therefore, 0x76 doesn&#8217;t mean 76; it actually means 7&#215;161 + 6&#215;160, or 118. Since &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/computer-science-what-is-0x-hex-notation\/\"> <span class=\"screen-reader-text\">Computer science: what is 0x (hex notation)?<\/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":[105],"tags":[3251,3252,3253,405,1092],"class_list":["post-47591","post","type-post","status-publish","format-standard","hentry","category-computer-science","tag-0x","tag-assembly-language","tag-css-colors","tag-hex","tag-html-colors"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/47591","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=47591"}],"version-history":[{"count":4,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/47591\/revisions"}],"predecessor-version":[{"id":47595,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/47591\/revisions\/47595"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=47591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=47591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=47591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}