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.
This page is generated from the comments in src/math/calculation.js . Please feel free to edit it and submit a pull request!

Related References