This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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