Difference between revisions of "Floor"
Jump to navigation
Jump to search
(Created page with "<c>floor</c> Returns the "floor", i.e. closest whole number less than or equal to the given number. === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Val...") |
|||
Line 9: | Line 9: | ||
| ''x'' || number, default 0 || number to get the floor of | | ''x'' || number, default 0 || number to get the floor of | ||
|} | |} | ||
− | |||
== Example == | == Example == |
Revision as of 16:53, 16 March 2020
floor
Returns the "floor", i.e. closest whole number less than or equal to the given number.
Arguments
Parameter Name | Default Value | Meaning |
---|---|---|
x | number, default 0 | number to get the floor of |
Example
floor(42.9) // returns 42