About the Floor
Floor is a standard mathematical rounding-down function.
For positive numbers it usually resembles dropping the decimal part, but for negative numbers it moves toward negative infinity.
Find the floor of a number, the greatest integer less than or equal to the input.
Floor is a standard mathematical rounding-down function.
For positive numbers it usually resembles dropping the decimal part, but for negative numbers it moves toward negative infinity.
| Number | -2.1 |
| Floor | -3 |
The result demonstrates that floor moves toward negative infinity.
Try this example →It is the greatest integer less than or equal to that number.
It is -3.