Return the largest integer value that is less than or equal to 25.75:
SELECT FLOOR(25.75);
Try it Yourself »
The FLOOR() function returns the largest integer value that is smaller than or equal to a number.
Note: Also look at the ROUND(), CEIL(), CEILING(), TRUNCATE(), and DIV functions.
FLOOR(
number)
Parameter | Description |
---|---|
number | Required. A numeric value |
Works in: | From MySQL 4.0 |
---|
Return the largest integer value that is less than or equal to 25:
SELECT FLOOR(25);
Try it Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!