Floor Function Calculator
With the floor function calculator you can discover how this function works and why it is useful.
Rounded3,457to the nearest 1
Rounded down (floor)3,456
Rounded up (ceiling)3,457
Truncated3,456digits simply dropped
Difference from the original0.211
At every place value
| Nearest | Result |
|---|---|
| 0.01 | 3,456.79 |
| 0.1 | 3,456.8 |
| 1 | 3,457 |
| 10 | 3,460 |
| 100 | 3,500 |
| 1000 | 3,000 |
The method
round to the nearest multiple of the chosen place
Rounding, flooring and truncating differ
Rounding goes to whichever multiple is closer. Floor always goes down and ceiling always goes up — including for negatives, where floor(−2.3) is −3, not −2. Truncating just discards digits, so it rounds towards zero and behaves differently from floor on negative numbers.