{"id":672,"date":"2024-11-19T08:49:22","date_gmt":"2024-11-19T08:49:22","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=672"},"modified":"2026-01-12T22:14:14","modified_gmt":"2026-01-12T22:14:14","slug":"mwnci-bin2dec-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-bin2dec-function\/","title":{"rendered":"Mwnci bin2dec() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>bin2dec<strong>(<em>binary number<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>bin2dec()<\/i> function returns the equivalent decimal number, or <em>false<\/em> if the given number is not binary.<\/p>\n<h2>Example<\/h2>\n<pre>include(\"main\")\r\nprintln(bin2dec(\"0b11111\"))\r\nprintln(bin2dec(11111))\r\nprintln(bin2dec(\"11111\"))\r\n\r\n\r\n31\r\n31\r\n31<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax bin2dec(binary number) Description The bin2dec() function returns the equivalent decimal number, or false if the given number is not binary. Example include(&#8220;main&#8221;) println(bin2dec(&#8220;0b11111&#8221;)) println(bin2dec(11111)) println(bin2dec(&#8220;11111&#8221;)) 31 31 31<\/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-672","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/672","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=672"}],"version-history":[{"count":5,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/672\/revisions"}],"predecessor-version":[{"id":1322,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/672\/revisions\/1322"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}