JavaScript tutorial:
ceil method

 

Applies to: Math Object

The ceil method is use to get the smallest integer greater than or equal to its numeric argument.

Syntax

Math.ceil(number)

The number argument is a numeric expression.

Return value

Returns the smallest integer greater than or equal to its numeric argument.

Example

The return value is an integer value equal to the smallest integer greater than or equal to its numeric argument.

See also: floor Method, Math Object Methods