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.