# Challenge: Find the Floor and Ceil of a Number in a Sorted List

In this lesson, we will learn about finding the floor and ceiling of a number from a given pool of numbers.

## Floor functions

A

floor functiontakes areal number$x$ and returns the greatest`Integer`

less than or equal to $x.$

*For example,*

$floor(x) = \lfloor x \rfloor$

$floor(7.5) = \lfloor 7.5 \rfloor = 7$

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.