Return the smallest integer value that is greater than or equal to a number:
SELECT CEILING(25.75) AS CeilValue;
Try it Yourself »
The CEILING() function returns the smallest integer value that is larger than or equal to a number.
Tip: Also look at the FLOOR() and ROUND() functions.
CEILING(
number)
Parameter | Description |
---|---|
number | Required. A numeric value |
Works in: | SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse |
---|
Return the smallest integer value that is greater than or equal to a number:
SELECT CEILING(25) AS CeilValue;
Try it Yourself »
Return the smallest integer value that is greater than or equal to a number:
SELECT CEILING(-13.5) AS CeilValue;
Try it Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!