mysql> SELECT FLOOR(5),FLOOR(5.66),FLOOR(-4),FLOOR(-4.66); +----------+-------------+-----------+--------------+ | FLOOR(5) | FLOOR(5.66) | FLOOR(-4) | FLOOR(-4.66) | +----------+-------------+-----------+--------------+ | 5 | 5 | -4 | -5 | +----------+-------------+-----------+--------------+ 1 row in set (0.00 sec)由运行结果可知,小于 5,5.66,-4,-4.66 的最大整数依次是 5,5,-4,-5。
本文链接:http://task.lmcjl.com/news/5258.html