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