bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL Server FLOOR() Function

Example

SELECT FLOOR(25.75) AS FloorValue;

Definition and Usage

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.

Syntax

FLOOR(
number
)

Parameter Values

ParameterDescription
numberRequired. A numeric value

Technical Details

Works in:SQL Server (starting with 2008), Azure SQL Data Warehouse, Parallel Data Warehouse

Previous

SQL Server EXP() Function

Next

SQL Server LOG() Function