Floor Function Calculator
Round a number down to the nearest integer.
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.
FAQ
Is floor the same as truncation?
For positives yes, but for negatives floor goes further down: ⌊−4.2⌋ = −5 while truncation gives −4.