Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

Math.ceil()

2 tags 1 category

The Math.ceil() static method always rounds up and returns the smallest integer greater than or equal to a given number.

Because ceil() is a static method of Math, you always use it as Math.ceil(), rather than as a method of a Math object you created (Math is not a constructor).

Return value: The smallest integer greater than or equal to x. It’s the same value as -Math.floor(-x).

Syntax example: Math.ceil(x)

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…