In
mathematics and
computer science, the
floor and
ceiling functions map a
real number to the largest previous or the smallest following
integer, respectively. More precisely, floor(
x) =
![](http://bis.babylon.com/?rt=GetFile&uri=!!ARV6FUJ2JP&type=0&index=3089)
is the largest integer not greater than
x and ceiling(
x) =
![](http://bis.babylon.com/?rt=GetFile&uri=!!ARV6FUJ2JP&type=0&index=2620)
is the smallest integer not less than
x.