Ceil

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

ceil Returns the "ceiling", i.e. closest whole number greater than or equal to the given number.

See also: floor, round

Arguments

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

Example

ceil(41.2)      // returns 42