FLOOR(X) returns the largest integer value not greater than X. : FLOOR « Math Numeric Functions « MySQL Tutorial






mysql>
mysql> SELECT FLOOR(1.23);
+-------------+
| FLOOR(1.23) |
+-------------+
|           1 |
+-------------+
1 row in set (0.00 sec)

mysql> SELECT FLOOR(-1.23);
+--------------+
| FLOOR(-1.23) |
+--------------+
|           -2 |
+--------------+
1 row in set (0.02 sec)

mysql>








21.18.FLOOR
21.18.1.FLOOR(X) returns the largest integer value not greater than X.
21.18.2.Flooring a column