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