ceil

The Math.ceil() method rounds a number rounded UP to the nearest integer.

Syntax

Math.ceil(x)

Returns

The nearest integer to the number rounding UP.

Parameters

x (float)
A number.