The following example shows positive numeric negative numeric and values with the floor function.
Floor value in sql.
Select floor numeric expression from source.
Select floor 123 45 floor 123 45 floor 123 45.
The result is the integer part of the calculated value in the same data type as numeric expression.
It returns the largest smallest integer greater than or equal to the specified numeric expression.
Azure synapse analytics sql data warehouse and parallel data warehouse.
The floor function returns the largest integer value that is smaller than or equal to a number.
The sql floor function rounded up any positive or negative decimal value down to the next least integer value.
It also accepts one value.
The sql floor function is similar to a ceiling function with one difference.
In sql server transact sql the floor function returns the largest integer value that is equal to or less than a number.
Syntax of sql floor function.
The sql floor function is a mathematical function used to return the closest integer value which is less than or equal to the specified expression or value.