Floor function calculator

Round down to the nearest integer. The floor ⌊x⌋ is the largest integer ≤ x.

Floor function

⌊x⌋ rounds DOWN to the nearest integer. ⌊3.7⌋ = 3. ⌊5⌋ = 5. ⌊−2.3⌋ = −3.

In programming

Most languages: Math.floor() in JS, math.floor() in Python, FLOOR() in Excel. Integer division (a//b in Python) uses floor.

Examples
Related calculators