JavaScript ceil
Math.ceil() rounds a number UP to the nearest integer — "ceiling". Even 4.0001 becomes 5.
Syntax
Math.ceil(num) Examples
| Input | Arguments | Output |
|---|---|---|
| 4.1 | — | 5 |
Try it live
Type your input and see ceil transform it instantly.
Want to go further? Chain ceil with other functions in the visual Playground — pipe one output into the next and watch your data transform.