Home · Everyday · Rounding & Numbers · Floor Function Calculator

Floor Function Calculator

Round any real number down to the greatest integer that does not exceed it, and see its fractional part at a glance.

Your figures

Example result — edit the figures to make it yours

4

Floor ⌊x⌋

Computed from the inputs on this page with the formula below — change any figure and every result updates.

Fractional part {x}0.7000
Distance up to next integer0.3000

What this calculator does

Round any real number down to the greatest integer that does not exceed it, and see its fractional part at a glance. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

⌊x⌋ = greatest integer ≤ x, {x} = x − ⌊x⌋

The floor function ⌊x⌋ returns the greatest integer that is less than or equal to x. Positive numbers simply drop their decimal part, but negative numbers move away from zero: ⌊−2.3⌋ = −3. The fractional part {x} = x − ⌊x⌋ always lies in the range 0 ≤ {x} < 1.

Floor is the right tool when only complete units count — full weeks elapsed, whole items that fit, or completed years of age. Do not confuse it with truncation toward zero, which gives a different answer for negative inputs.

Worked example

With the example inputs this page opens with (number x 4.7), the result is 4 — floor ⌊x⌋. Computed from the inputs on this page with the formula below — change any figure and every result updates.

Quick reference

Quick reference — varying Number x
Number xFloor ⌊x⌋Fractional part {x}Distance up to next integer
0.500.50.5
1.910.90.1
2200
3.2530.250.75
4.740.70.3
8.9980.990.01
12.3120.30.7

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

Is the floor of −2.3 equal to −2 or −3?

It is −3. Floor rounds toward negative infinity, so −2.3 moves down to the next integer below it, which is −3, and its fractional part is 0.7.

How does the Floor Function Calculator work?

Round any real number down to the greatest integer that does not exceed it, and see its fractional part at a glance. Number x → Floor ⌊x⌋. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Floor Function Calculator need?

Number x → Floor ⌊x⌋. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Floor Function Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.