Floor

From MiniScript Wiki
Revision as of 15:13, 25 March 2022 by JoeStrout (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

floor Returns the "floor", i.e. closest whole number less than or equal to the given number.

See also: ceil, round

Arguments

Parameter Name Type Meaning
x number, default 0 number to get the floor of

Example

floor(42.9)     // returns 42