Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

Floor and ceiling functions turn any real number into a nearby integer in a precise way. The floor function rounds down to the greatest integer that is less than or equal to the input, while the ceiling function rounds up to the smallest integer that is greater than or equal to the input. They matter because many real situations use whole numbers, such as seats, pages, boxes, days, or computer memory blocks.

Their graphs look like staircases because the output stays constant over intervals and then jumps at integers.

For each integer n, the floor function has value n on the interval n ≤ x < n + 1, while the ceiling function has value n on the interval n - 1 < x ≤ n. On a graph, filled dots show included endpoints and open dots show excluded endpoints. Floor and ceiling functions are closely related to rounding, inequalities, modular arithmetic, and algorithms in computer science.

They are useful whenever a continuous quantity must be converted into a whole-number count without losing the direction of the rounding.

Key Facts

  • Floor definition: ⌊x⌋ = greatest integer less than or equal to x.
  • Ceiling definition: ⌈x⌉ = smallest integer greater than or equal to x.
  • For any integer n, ⌊x⌋ = n when n ≤ x < n + 1.
  • For any integer n, ⌈x⌉ = n when n - 1 < x ≤ n.
  • For every real x, ⌊x⌋ ≤ x ≤ ⌈x⌉.
  • If x is an integer, then ⌊x⌋ = x and ⌈x⌉ = x.

Vocabulary

Floor function
The function that maps a real number to the greatest integer less than or equal to that number.
Ceiling function
The function that maps a real number to the smallest integer greater than or equal to that number.
Greatest integer function
Another name often used for the floor function, especially in algebra courses.
Step function
A function whose graph is made of horizontal pieces with jumps between them.
Endpoint
A boundary point of an interval, often shown with a filled dot if included and an open dot if not included.

Common Mistakes to Avoid

  • Treating floor as ordinary rounding is wrong because ⌊3.9⌋ = 3, not 4.
  • Forgetting how negatives work is wrong because floor moves left on the number line, so ⌊-2.1⌋ = -3, not -2.
  • Switching open and closed dots on the graph is wrong because floor includes the left endpoint of each step and excludes the right endpoint.
  • Assuming floor and ceiling are always different is wrong because they are equal whenever x is already an integer.

Practice Questions

  1. 1 Evaluate each value: ⌊4.7⌋, ⌈4.7⌉, ⌊-1.2⌋, and ⌈-1.2⌉.
  2. 2 Find all real numbers x such that ⌊x⌋ = 5, and write the answer as an interval.
  3. 3 A bus holds 40 students and a school needs to transport 173 students. Explain whether floor or ceiling should be used to find the number of buses needed, and give the result.