Maths & numbers

Floor and ceiling of a number calculator

Find the neighbouring integers below and above a real value.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

For negative values, rounding down moves away from zero unless the number is already a whole integer.

THE FORMULAfloor(x) ≤ x ≤ ceil(x)

A worked example

The floor of −2.3 is −3 and its ceiling is −2.

Good to know

When the input is an integer, floor and ceiling are equal.

Read the result

Find the neighbouring integers below and above a real value.

The primary result is labeled “Floor”. Keep the input definitions in view when comparing this result with another method.

Try a related calculation

When the input is an integer, floor and ceiling are equal.

For a related exercise, try the fraction calculator.

A few questions, answered

How can I check the default inputs by hand?

The floor of −2.3 is −3 and its ceiling is −2.

Which rule does this calculator apply?

floor(x) ≤ x ≤ ceil(x)

Find your calculator

Start typing to explore the library.