
This article will show you in detail how to use the FLOOR () numerical processing function in SQL Server with specific syntax and examples to better visualize and capture functions.
Describe
The FLOOR function in SQL Server returns the lower bound value of the number or expression, ie returns the largest integer value but less than or equal to the transmitted numeric expression.
Syntax
To use the FLOOR function in SQL Server, we use the following syntax:
FLOOR(number)
Parameters :
Note :
For example
Take a look and explore some examples of FLOOR functions in SQL Server.
SELECT FLOOR(5.9);
Result: 5
SELECT FLOOR(5);
Result: 5
SELECT FLOOR(34.29);
Result: 34
SELECT FLOOR(-5.9);
Result: -6
SELECT FLOOR(-5);
Result: -5
Previous article: COUNT function in SQL Server
Next lesson: MAX function in SQL Server
ncG1vNJzZmismaXArq3KnmWcp51ks627zqtkn62emMGqu81moKdlo6a5br%2FEq62eqg%3D%3D