Reference ceil()

ceil()

Calculates the closest integer value that is greater than or equal to a number.

For example, calling ceil(9.03) and ceil(9.97) both return the value 10.

Examples

Syntax

ceil(n)

Parameters

n
Number:

number to round up.

Returns

Integer: rounded up number.
Notice any errors or typos? Please let us know. Please feel free to edit src/math/calculation.js and open a pull request!

Related References