Ceiling Function Calculator
Test cases replayed : 4 of 4 match · Methodology · No outside source listed
Enter a number, and a multiple if you want to round up to steps other than 1.
Result
Ceiling ⌈x⌉
Floor ⌊x⌋ (for comparison)
- x rounded up to the multiple
- Fractional part x − ⌊x⌋
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Number x: enter a number.
- Round up to a multiple of (positive): enter 0 or more.
- Read the result: Ceiling ⌈x⌉; the panel also shows Floor ⌊x⌋ (for comparison), x rounded up to the multiple and Fractional part x − ⌊x⌋.
How this calculator works
⌈x⌉ is the smallest integer greater than or equal to x; ⌊x⌋ is the largest integer less than or equal to x. For negative numbers the ceiling moves toward zero: ⌈−2.4⌉ = −2.
Rounding up to a multiple m is ⌈x ÷ m⌉ × m, the same as Excel's CEILING(x, m) for positive m.
The formula
| Symbol | Meaning |
|---|---|
| Number x | |
| Ceiling ⌈x⌉ | |
ceil(x) | the smallest whole number not below x. |
Worked example
| Number x | 7.3 |
|---|---|
| Round up to a multiple of (positive) | 0.5 |
| Floor ⌊x⌋ (for comparison) | 7 |
|---|---|
| x rounded up to the multiple | 7.5 |
| Fractional part x − ⌊x⌋ | 0.3 |
Ceiling ⌈x⌉ 8
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the ceiling of 7.3?
8. Rounded up to a multiple of 0.5 it is 7.5.
What is the ceiling of −2.4?
−2, while its floor is −3.
What is the ceiling of a whole number?
The number itself: ⌈5⌉ = 5.