JavaScript Math.ceil()
JavaScript Math.ceil()
The Math.ceil() method is used to round a number upwards to the nearest integer and then return the result.
Syntax:-
Its syntax is:- Math.ceil(x)
Return:-
Its return is:- number rounded upward to the nearest integer
Further Explanation:-
Parameter | Description |
---|---|
x | Required. A number. |