What Is Floor Function?
The floor function ⌊x⌋ maps any real number to the greatest integer that is less than or equal to it. In other words, it rounds down to the nearest whole number: ⌊3.7⌋ = 3 and ⌊−2.3⌋ = −3.
Floor belongs to a family of "step" functions used widely in mathematics and computing. Alongside its partner the ceiling function ⌈x⌉, which rounds up, it turns continuous quantities into whole-number counts — the complete containers, days, or digits a value needs.
Formula
Applications
- Counting how many full boxes or bins a quantity fills
- Rounding time downward to whole minutes or hours
- Complete periods in recurrence problems
- Integer truncation and pagination in programming
- Negative coordinates handled consistently in grid layouts
Sources
- Rosen, K. H. (2019). Discrete Mathematics and Its Applications (8th ed.). McGraw-Hill.
- Stewart, J. (2015). Calculus: Early Transcendentals (8th ed.). Cengage Learning.