Learn JavaScript
Math Object
18.11
Lesson

Rounding Up a Number

The Math.ceil() method rounds up the number.

2.9 is rounded up to 3: