The Greatest Integer Function

Evaluate the floor function correctly for negative inputs.

The bigger question: Which graph-reading skills do limits rely on?

On this page

Idea

The floor function ⌊x⌋\lfloor x\rfloor is the greatest integer less than or equal to xx. Its graph is a staircase. Unlike rounding, it always goes toward negative infinity.

Method

⌊x⌋=nwhen n≤x<n+1.\lfloor x\rfloor=n\quad\text{when }n\le x<n+1.

Each horizontal segment includes its left endpoint and excludes its right endpoint. The domain is all real numbers and the range is the integers.

Worked example

Since −3≤−2.4<−2-3\le-2.4<-2, ⌊−2.4⌋=−3\lfloor-2.4\rfloor=-3. At an integer nn, the left-hand limit is n−1n-1 while the right-hand limit and function value are nn. Thus the function jumps at every integer and is continuous at every noninteger.

Common mistake

Truncating decimal digits agrees with floor for positive inputs but fails for negative nonintegers. Also, floor does not distribute over addition.

Check your understanding

Compare ⌊0.7⌋+⌊0.7⌋\lfloor0.7\rfloor+\lfloor0.7\rfloor and ⌊1.4⌋\lfloor1.4\rfloor.

Show answer

They are 00 and 11, respectively.

Explore

Domain and range

Try this. Switch functions and compare allowed inputs and outputs. Open circles exclude endpoints; filled circles include them.

Domain and range-6-6-4-4-2-2224466xy
y = floor(x) · Domain: all real x · Range: integers · Left endpoint included; right endpoint excluded
PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

What is ⌊−1.2⌋?

Hint 1 · Find a starting point

Floor means the greatest integer no larger than the input.

Hint 2 · Take the next step

−1 is larger than −1.2.

Show the reasoning

Answer: −2

−2≤−1.2<−1, so the floor is −2, not truncation toward zero.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →