ceil()

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

Syntax

ceil(value)

Parameters

Parameter Type Description
value Number Numeric value to apply ceiling.

Return Value

Examples

ceil(3.2);  // returns 4
ceil(3.0);  // returns 3
ceil(-1.2); // returns -1

See also

round
roundup
floor
ceil
trunc
center
centerex