floor, dfloor
返回不大于 x 的最大整数值。
语法
FLOOR(x);
参数说明
x: 支持的数据类型为 DOUBLE。
返回值说明
返回值的数据类型为 BIGINT。
示例
mysql> select floor(3.14);
+-------------+
| floor(3.14) |
+-------------+
| 3 |
+-------------+
1 row in set (0.01 sec)
AI generated answers are based on docs and other sources. Please test answers in non-production environments.