Math.ceil

Returns the smallest integer greater than or equal to the given value.

Syntax

ceil(value)

Parameters

Return value

A number.

Examples

Math.ceil(10.2)
11
Math.ceil(10.9)
11

See also