Ceil

From MiniScript Wiki
Revision as of 23:19, 15 March 2020 by ZachStrout (talk | contribs) (Created page with "<c>ceil</c> Returns the "ceiling", i.e. closest whole number greater than or equal to the given number. See also: floor === Arguments === {| class="wikitable" |- ! Para...")
(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

Arguments

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

Example

ceil(41.2)      // returns 42