ceiling() Function

Rounds the number up to the nearest multiple of the specified significance.

Syntax

ceiling( number, significance )

number: (Decimal) A number, the ceiling of which will be returned.

significance: (Decimal) The number will be rounded to the lowest multiple of the significance that is greater than the number.

Returns

Number

Examples

You can experiment with this function in the test box below.

Test Input

ceiling(7.32,.5) returns 7.5

Open in Github Built: Fri, Mar 11, 2022 (04:59:07 PM)

On This Page

FEEDBACK