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, ceiling, and fractional part functions help describe rounding, step patterns, remainders, and repeated intervals. This cheat sheet gives students a clear reference for the symbols, meanings, graphs, and most useful identities. These functions appear in algebra, number theory, computer science, and contest-style problems.

A clean reference helps students avoid confusing nearby integer values and interval endpoints.

The floor function x\lfloor x \rfloor gives the greatest integer less than or equal to xx, while the ceiling function x\lceil x \rceil gives the least integer greater than or equal to xx. The fractional part function is {x}=xx\{x\}=x-\lfloor x \rfloor, so it keeps only the non-integer part of xx. Key ideas include using inequalities such as nx<n+1n \le x < n+1 and remembering how negative numbers behave.

Graphs of these functions are step-shaped, with careful attention to open and closed endpoints.

Key Facts

  • The floor function is defined by x=n\lfloor x \rfloor=n when nx<n+1n \le x < n+1 for an integer nn.
  • The ceiling function is defined by x=n\lceil x \rceil=n when n1<xnn-1 < x \le n for an integer nn.
  • For every real number xx, xxx\lfloor x \rfloor \le x \le \lceil x \rceil.
  • If xx is an integer, then x=x=x\lfloor x \rfloor=\lceil x \rceil=x.
  • The fractional part of xx is {x}=xx\{x\}=x-\lfloor x \rfloor, so 0{x}<10 \le \{x\}<1.
  • Every real number can be written as x=x+{x}x=\lfloor x \rfloor+\{x\}.
  • For any integer kk, x+k=x+k\lfloor x+k \rfloor=\lfloor x \rfloor+k and x+k=x+k\lceil x+k \rceil=\lceil x \rceil+k.
  • Floor and ceiling are related by x=x\lceil x \rceil=-\lfloor -x \rfloor and x=x\lfloor x \rfloor=-\lceil -x \rceil.

Vocabulary

Floor Function
The floor function x\lfloor x \rfloor gives the greatest integer less than or equal to xx.
Ceiling Function
The ceiling function x\lceil x \rceil gives the least integer greater than or equal to xx.
Fractional Part
The fractional part {x}\{x\} is the amount left after subtracting x\lfloor x \rfloor from xx.
Step Function
A step function is a graph made of horizontal pieces that jump at certain input values.
Integer
An integer is a whole number, its opposite, or zero, such as 3-3, 00, or 55.
Endpoint
An endpoint is the boundary value of an interval, often shown with a closed dot if included and an open dot if not included.

Common Mistakes to Avoid

  • Treating 2.3\lfloor -2.3 \rfloor as 2-2 is wrong because floor moves to the greatest integer less than or equal to the number, so 2.3=3\lfloor -2.3 \rfloor=-3.
  • Treating 2.3\lceil -2.3 \rceil as 3-3 is wrong because ceiling moves to the least integer greater than or equal to the number, so 2.3=2\lceil -2.3 \rceil=-2.
  • Forgetting endpoint rules on graphs is wrong because x=n\lfloor x \rfloor=n includes x=nx=n but excludes x=n+1x=n+1, so the interval is [n,n+1)[n,n+1).
  • Assuming {x}\{x\} is always the decimal part written after the point is wrong for negative numbers because {2.3}=2.32.3=0.7\{-2.3\}=-2.3-\lfloor -2.3 \rfloor=0.7.
  • Using a+b=a+b\lfloor a+b \rfloor=\lfloor a \rfloor+\lfloor b \rfloor for all numbers is wrong because carries can occur, such as 1.7+2.6=4\lfloor 1.7+2.6 \rfloor=4 but 1.7+2.6=3\lfloor 1.7 \rfloor+\lfloor 2.6 \rfloor=3.

Practice Questions

  1. 1 Evaluate 4.8\lfloor 4.8 \rfloor, 4.8\lceil 4.8 \rceil, and {4.8}\{4.8\}.
  2. 2 Evaluate 3.2\lfloor -3.2 \rfloor, 3.2\lceil -3.2 \rceil, and {3.2}\{-3.2\}.
  3. 3 Solve for all real numbers xx such that x=5\lfloor x \rfloor=5.
  4. 4 Explain why the graph of y=xy=\lfloor x \rfloor uses closed circles on the left endpoints and open circles on the right endpoints.

Understanding Floor, Ceiling & Fractional Part Functions

Negative inputs are where many errors begin. The fractional part is not simply the digits after a decimal point. For negative two point three, the floor is negative three because negative three is the nearest integer on the lower side.

The fractional part is then zero point seven, since negative two point three minus negative three equals zero point seven. This keeps the fractional part in the interval from zero up to but not including one. A useful habit is to locate a negative number between two consecutive integers on a number line before choosing either rounding function.

These functions do not behave like ordinary algebraic expressions. In general, taking the floor after adding two numbers does not give the same result as adding their separate floors. The missing amount comes from the two fractional parts.

Their sum can reach or pass one, creating an extra whole unit. For example, the floors of one point six and two point seven add to three, while the floor of their sum is four. This idea is useful in proofs because it explains exactly why an expected equality can fail.

It also teaches an important larger lesson. A function that rounds or groups values can change the result of later operations.

Inequalities provide a reliable way to solve equations involving these functions. If the floor of an expression equals a chosen integer, replace that statement with two bounds. The expression must be at least that integer and less than the next integer.

Then solve the pair of ordinary inequalities. For a ceiling value, the lower endpoint is excluded and the upper endpoint is included. Students should write endpoint signs carefully, rather than relying on a sketch alone.

This method works for linear expressions, so it can turn a step-function problem into a familiar algebra problem. It also reveals that one output often corresponds to a full interval of input values, not one single value.

Step graphs show why discontinuities matter. A graph stays flat while inputs move through one interval, then jumps when an integer boundary is reached. At every jump, an open circle marks a value that is not included and a filled circle marks the value that is included.

Reading these circles correctly matters when finding range, evaluating a graph at an integer, or deciding whether a function is continuous. Outside class, floor and ceiling appear whenever a continuous quantity must become a count. A store may need the ceiling of the number of boxes required.

A computer may use a floor operation to select a position in a list. A clock display groups continuously passing time into whole seconds or minutes. In each case, the choice depends on whether partial amounts are ignored or whether enough whole units must be provided.