ceiling: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page ceiling to Ceiling without leaving a redirect: Converting page title to first-letter uppercase)
(No difference)

Revision as of 22:16, 9 February 2023

ceiling() Function

Returns the number passed in if it is an integer, otherwise it returns the number rounded up to the next integer.

Usage

[h: val = ceil(num)]
[h: val = ceiling(num)]

Examples

[r: ceil(10)]

Returns 10.

[r: ceil(1.2)]

Returns 2.

[r: ceil(-1.2)]
Returns -1.