offline version v3


33 of 264 menu

Math.ceil method

The Math.ceil method rounds a fractional number to an integer always up.

Syntax

Math.ceil(number);

Example

Let's round the number 3.00001 up:

console.log(Math.ceil(3.00001));

The code execution result:

4

See also

enru