{"id":202,"date":"2024-09-30T11:06:12","date_gmt":"2024-09-30T10:06:12","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=202"},"modified":"2024-09-30T11:06:12","modified_gmt":"2024-09-30T10:06:12","slug":"mwnci-floor-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-floor-function\/","title":{"rendered":"Mwnci floor() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>floor(<i><b>argument<\/b><\/i>)<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p>The <i>floor()<\/i> function returns an integer that is no larger than the argument, that is, the greatest integer lower bound for\u00a0argument.<\/p>\n<p>The\u00a0<i>floor()<\/i> function and the <em>ceil() <\/em>function together bracket argument such that the following are true:<\/p>\n<p>If\u00a0argument\u00a0is an integer, ceil(\u00a0argument\u00a0) =\u00a0argument\u00a0= floor(\u00a0argument\u00a0).<\/p>\n<p>If argument is not an integer, floor(\u00a0argument\u00a0) &lt;\u00a0argument\u00a0&lt; ceil(\u00a0argument\u00a0) and ceil(\u00a0argument\u00a0) = floor(\u00a0argument\u00a0) + 1.<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>println(floor(12.3456))\r\n\r\n\r\n12\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax floor(argument) Description The floor() function returns an integer that is no larger than the argument, that is, the greatest integer lower bound for\u00a0argument. The\u00a0floor() function and the ceil() function together bracket argument such that the following are true: If\u00a0argument\u00a0is an integer, ceil(\u00a0argument\u00a0) =\u00a0argument\u00a0= floor(\u00a0argument\u00a0). If argument is not an integer, floor(\u00a0argument\u00a0) &lt;\u00a0argument\u00a0&lt; ceil(\u00a0argument\u00a0) and &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-floor-function\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mwnci floor() Function&#8221;<\/span><\/a><\/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-202","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/202","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=202"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/202\/revisions"}],"predecessor-version":[{"id":203,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/202\/revisions\/203"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}