Difference between revisions of "Floor"
Jump to navigation
Jump to search
m (→Arguments) |
(See also: round) |
||
Line 13: | Line 13: | ||
<ms>floor(42.9) // returns 42</ms> | <ms>floor(42.9) // returns 42</ms> | ||
+ | |||
+ | == See also == | ||
+ | |||
+ | * [[round]] | ||
[[Category:Intrinsic Functions]] | [[Category:Intrinsic Functions]] | ||
[[Category:Numeric Functions]] | [[Category:Numeric Functions]] |
Revision as of 12:26, 25 March 2022
floor
Returns the "floor", i.e. closest whole number less than or equal to the given number.
Arguments
Parameter Name | Type | Meaning |
---|---|---|
x | number, default 0 | number to get the floor of |
Example
floor(42.9) // returns 42