Topics Register • News • History • How to • Sequences statistics • Template prototypes

# Floor function

In mathematics and computer science, the floor function is the function that takes as input a real number $\displaystyle{ x }$ and gives as output the greatest integer less than or equal to $\displaystyle{ x }$, denoted $\displaystyle{ \operatorname{floor}(x) = \lfloor x\rfloor }$.
Similarly, the ceiling function maps $\displaystyle{ x }$ to the least integer greater than or equal to $\displaystyle{ x }$, denoted $\displaystyle{ \operatorname{ceil}(x) = \lceil x \rceil }$.
x Floor $\displaystyle{ \lfloor x\rfloor }$ Ceiling $\displaystyle{ \lceil x\rceil }$