⌊x⌋ Floor Calculator

Find the floor of a number, the greatest integer less than or equal to the input.

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

Enter details

Floor
-3

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

📘 About the Floor

Floor is a standard mathematical rounding-down function.

For positive numbers it usually resembles dropping the decimal part, but for negative numbers it moves toward negative infinity.

🧮 Formula

Floor function
floor(x)

Where

  • x = input number
Floor is not the same as truncation for negative numbers.

✏️ Worked examples

Floor of 7.8

You enter
Number7.8
You get
Floor7

The result is 7.

Try this example →

Floor of -2.1

You enter
Number-2.1
You get
Floor-3

The result demonstrates that floor moves toward negative infinity.

Try this example →

🧭 How to use this calculator

What you enter

  • Number

What you get

  • Floor

💡 Floor versus truncation

  • Floor moves toward negative infinity.
  • For positive values, floor and truncation toward zero give the same whole-number result.
  • For negative values, they can differ.

❓ Frequently asked questions

What is the floor of a number?

It is the greatest integer less than or equal to that number.

What is the floor of -2.1?

It is -3.