Floor and Ceiling Calculator

Enter a number to find its floor and ceiling.

A whole number, decimal or fraction.

Try

Result

You enteredx=−3.7x = -3.7

⌊−3.7⌋=−4, ⌈−3.7⌉=−3\displaystyle \lfloor -3.7 \rfloor = -4,\ \lceil -3.7 \rceil = -3

Rounded

−4\displaystyle -4

Fractional part

310\displaystyle \frac{3}{10}
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=−3.7x = -3.7
  2. Find the whole numbers on each side

    −3.7-3.7 lies between the whole numbers −4-4 and −3-3, with nothing in between.

    −4<−3.7<−3-4 < -3.7 < -3
  3. Result

    The floor is the lower of the two and the ceiling the upper: ⌊−3.7⌋=−4, ⌈−3.7⌉=−3\lfloor -3.7 \rfloor = -4,\ \lceil -3.7 \rceil = -3.

Worked examples