{"id":1320,"date":"2026-01-12T21:58:41","date_gmt":"2026-01-12T21:58:41","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=1320"},"modified":"2026-01-12T21:58:41","modified_gmt":"2026-01-12T21:58:41","slug":"mwnci-hex2dec-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-hex2dec-function\/","title":{"rendered":"Mwnci hex2dec() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>hex2dec<strong>(<em>hexadecimal string<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>hex2dec()<\/i> function returns the equivalent decimal number, or <em>false<\/em> if the given number is not hexadecimal.<\/p>\n<h2>Example<\/h2>\n<pre>include(\"main\")\r\nprintln(hex2dec(\"0xFFFF\"))\r\nprintln(hex2dec(\"ff\"))\r\n\r\n\r\n\r\n65535\r\n255\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax hex2dec(hexadecimal string) Description The hex2dec() function returns the equivalent decimal number, or false if the given number is not hexadecimal. Example include(&#8220;main&#8221;) println(hex2dec(&#8220;0xFFFF&#8221;)) println(hex2dec(&#8220;ff&#8221;)) 65535 255<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1320","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=1320"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1320\/revisions"}],"predecessor-version":[{"id":1321,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1320\/revisions\/1321"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}