Math

Floor Function Calculator

Round a number down to the nearest integer.

Parameters Live Compute
Calculated Output
⌊x⌋ 4
Formula: ⌊x⌋ = largest integer ≤ x
Step-by-Step Breakdown
1. Values used:
2. Number = 4.8
3.
4. ⌊x⌋ = 4
Did this calculator solve your problem today?
Report issue to loopingon.com
Sponsored

The floor function rounds any number down to the previous whole number.

The math behind it

⌊x⌋ is the largest integer that is less than or equal to x. It rounds toward negative infinity.

Worked Example

⌊4.8⌋ = 4, and ⌊−4.2⌋ = −5.

Frequently Asked Questions

Is floor the same as truncation?

For positives yes, but for negatives floor goes further down: ⌊−4.2⌋ = −5 while truncation gives −4.

Advertisement