FLOOR(x) 返回不大于 x 的最大整数值
mysql> SELECT FLOOR(-3.35), FLOOR(3.35); +--------------+-------------+ | FLOOR(-3.35) | FLOOR(3.35) | +--------------+-------------+ | -4 | 3 | +--------------+-------------+
时间: 2024-10-19 16:45:09
FLOOR(x) 返回不大于 x 的最大整数值
mysql> SELECT FLOOR(-3.35), FLOOR(3.35); +--------------+-------------+ | FLOOR(-3.35) | FLOOR(3.35) | +--------------+-------------+ | -4 | 3 | +--------------+-------------+