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.

Description: Rounds a number up to the nearest integer.

Example: ceil 3.14 => 4

Want to go further? Chain ceil with other functions in the visual Playground — pipe one output into the next and watch your data transform.

Related functions

© 2026 Heifara Buval