{"id":226,"date":"2024-09-30T19:53:02","date_gmt":"2024-09-30T18:53:02","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=226"},"modified":"2024-09-30T19:53:02","modified_gmt":"2024-09-30T18:53:02","slug":"mwnci-hex-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-hex-function\/","title":{"rendered":"Mwnci hex() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>hex(<i><b>integer<\/b><\/i>)<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p><i>hex()<\/i> will return the hexadecimal equivalent of the decimal <i>integer<\/i> passed to the function.<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>num=25\r\nhexadecimal=hex(num)\r\nprintln(\"Decimal 25 is \", hexadecimal, \" in hex\")\r\nprintln(\"Decimal 100 is \", hex(100), \" in hex\")\r\n\r\n\r\nDecimal 25 is 0x19 in hex\r\nDecimal 100 is 0x64 in hex\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax hex(integer) Description hex() will return the hexadecimal equivalent of the decimal integer passed to the function. Example num=25 hexadecimal=hex(num) println(&#8220;Decimal 25 is &#8220;, hexadecimal, &#8221; in hex&#8221;) println(&#8220;Decimal 100 is &#8220;, hex(100), &#8221; in hex&#8221;) Decimal 25 is 0x19 in hex Decimal 100 is 0x64 in hex<\/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-226","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/226","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=226"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/226\/revisions"}],"predecessor-version":[{"id":227,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/226\/revisions\/227"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}