Floor and Ceiling Calculator
Find the floor (the largest whole number at or below a value) and the ceiling (the smallest whole number at or above it). You can also round the value to a multiple of any step, such as 0.5 or 5.
1 Fill in the boxes
2 Your answer
Your answer shows here as you type.
How to use the Floor and Ceiling Calculator
- Enter the number you want to round.
- Leave the multiple at 1 for whole numbers, or enter a step such as 0.5 or 5.
- Read the floor, the ceiling and the nearest whole number.
Frequently asked questions
What is the floor of a number?
The floor is the largest integer less than or equal to the number. For example, the floor of 7.6 is 7, and the floor of -3.2 is -4.
What is the ceiling of a number?
The ceiling is the smallest integer greater than or equal to the number. For example, the ceiling of 7.6 is 8, and the ceiling of -3.2 is -3.
How is floor different from truncate?
Floor always rounds down toward negative infinity, while truncate drops the decimal part and rounds toward zero. For positive numbers they match, but for -3.2 the floor is -4 and the truncated value is -3.
How do I round down to a multiple of a step?
Divide the number by the step, take the floor of the result, then multiply by the step. For 7.6 with a step of 0.5, 7.6 divided by 0.5 is 15.2, the floor is 15, and 15 times 0.5 gives 7.5.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.