Floor and Ceiling Calculator

Enter a number to find its floor and ceiling.

A whole number, decimal or fraction.

Try

Result

You enteredx=5x = 5

⌊5⌋=5, ⌈5⌉=5\displaystyle \lfloor 5 \rfloor = 5,\ \lceil 5 \rceil = 5

Rounded

5\displaystyle 5

Fractional part

0\displaystyle 0
Show the work
  1. Floor and ceiling

    The floor ⌊x⌋\lfloor x \rfloor is the greatest whole number that is not more than xx; the ceiling ⌈x⌉\lceil x \rceil is the least whole number that is not less than xx. They are the whole numbers just below and just above xx.

    Using ⌊x⌋≤x≤⌈x⌉\lfloor x \rfloor \le x \le \lceil x \rceil

    x=5x = 5
  2. Find the whole numbers on each side

    55 is already a whole number, so the floor and the ceiling are both 55.

    5≤5≤55 \le 5 \le 5
  3. Result

    The floor is the lower of the two and the ceiling the upper: ⌊5⌋=5, ⌈5⌉=5\lfloor 5 \rfloor = 5,\ \lceil 5 \rceil = 5.

Worked examples