HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Return the smallest integer value that is greater than or equal to a number
The CEILING() function returns the smallest integer value that is larger than or equal to a number.
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;
Return the smallest integer value that is greater than or equal to a number:
SELECT CEILING(-13.5) AS CeilValue;