The Greatest Integer Function — Cheat sheet
On this page
Key method
Each horizontal segment includes its left endpoint and excludes its right endpoint. The domain is all real numbers and the range is the integers.
Example
Since , . At an integer , the left-hand limit is while the right-hand limit and function value are . Thus the function jumps at every integer and is continuous at every noninteger.
Avoid this mistake
Truncating decimal digits agrees with floor for positive inputs but fails for negative nonintegers. Also, floor does not distribute over addition.