{"id":584,"date":"2024-11-16T10:12:04","date_gmt":"2024-11-16T10:12:04","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=584"},"modified":"2024-11-16T10:12:04","modified_gmt":"2024-11-16T10:12:04","slug":"mwnci-dim-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-dim-function\/","title":{"rendered":"Mwnci dim() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>dim<strong>(<em>number<\/em>,<em>number<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>dim()<\/i> Returns the maximum of x-y or 0.<\/p>\n<h2>Example<\/h2>\n<pre>\r\ninclude(\"math\")\r\nprintf(\"%.2f\\n\", dim(4, -2))\r\nprintf(\"%.2f\\n\", dim(-4, 2))\r\n\r\n\r\n6.00\r\n0.00\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax dim(number,number) Description The dim() Returns the maximum of x-y or 0. Example include(&#8220;math&#8221;) printf(&#8220;%.2f\\n&#8221;, dim(4, -2)) printf(&#8220;%.2f\\n&#8221;, dim(-4, 2)) 6.00 0.00<\/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-584","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/584","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=584"}],"version-history":[{"count":2,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/584\/revisions"}],"predecessor-version":[{"id":586,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/584\/revisions\/586"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}