≈ Rounding Calculator

Round a number to the nearest integer and compare it with its floor and ceiling values.

No ratings yet — be the first
Rate it: ★ ★ ★ ★ ★

Enter details

Fill in the details and click Calculate to see your results.


Also available in our Android app, with charts and full breakdown tables.

📘 About the Rounding

Nearest-integer rounding selects the closest whole number according to the PHP rounding behavior used by the current engine.

Floor always moves toward negative infinity, while ceiling always moves toward positive infinity.

🧮 Formula

Nearest integer
Nearest = round(x)
Floor
Floor = floor(x)
Ceiling
Ceiling = ceil(x)

Where

  • x = input number
This version intentionally uses only the rounding functions supported by the current engine.

✏️ Worked examples

Round 12.56

You enter
Number12.56
You get
Nearest Integer13
Floor12
Ceiling13

The nearest integer is 13, the floor is 12, and the ceiling is 13.

Try this example →

Round -3.2

You enter
Number-3.2
You get
Nearest Integer-3
Floor-4
Ceiling-3

The calculator also shows floor and ceiling for a negative number.

Try this example →

🧭 How to use this calculator

What you enter

  • Number

What you get

  • Nearest Integer
  • Floor
  • Ceiling

💡 Rounding terms

  • Nearest integer chooses the closest whole number.
  • Floor gives the greatest integer less than or equal to the input.
  • Ceiling gives the smallest integer greater than or equal to the input.

❓ Frequently asked questions

What is floor?

Floor is the greatest integer less than or equal to the number.

What is ceiling?

Ceiling is the smallest integer greater than or equal to the number.

Can this calculator round to a chosen number of decimal places?

Not with the current calculator formula engine; this calculator intentionally provides engine-compatible nearest-integer rounding.