Math

Ceiling Function Calculator

Round a number up to the nearest integer.

Parameters Live Compute
Calculated Output
⌈x⌉ 5
Formula: ⌈x⌉ = smallest integer ≥ x
Step-by-Step Breakdown
1. Values used:
2. Number = 4.2
3.
4. ⌈x⌉ = 5
Did this calculator solve your problem today?
Report issue to loopingon.com
Sponsored

The ceiling function rounds any number up to the next whole number.

The math behind it

⌈x⌉ is the smallest integer that is greater than or equal to x. For integers, the ceiling is the number itself.

Worked Example

⌈4.2⌉ = 5, and ⌈−4.2⌉ = −4.

Frequently Asked Questions

How does it treat negatives?

It rounds toward positive infinity, so ⌈−4.2⌉ = −4.

Advertisement