ceil
Summary
Returns the smallest integer greater than or equal to its numeric argument.
Syntax
Math.ceil( number )
Examples
Math.ceil(0.4); // 1
Math.ceil(1.9); // 2
Math.ceil(3); // 3
Remarks
The required number argument is a numeric expression.
The return value is an integer value equal to the smallest integer greater than or equal to its numeric argument.
Applies To : Math Object
See also
Other articles
Attributions
Microsoft Developer Network: Article