Floor function
What is the floor of −2.7: −2 or −3?
−3. The floor of a real number x is the greatest integer less than or equal to x, and −3 is indeed the last integer below −2.7. Removing the decimals gives −1, but that is a different operation called truncation, which matches the floor only for positive numbers. For 2.7, both give 2.