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