Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


SQL Server 2000

Returns the largest integer less than or equal to the given numeric expression.

FLOOR ( numeric_expression ) 
Is an expression of the exact numeric or approximate numeric data type categories, or of data types that are implicitly convertible to float.
Return Types

Returns the same type as numeric_expression except for the following expressions.

Specified expression Return type
tinyint, smallint int
real/float float
Nonnumeric types that can be implicitly converted to float float

The following example applies the FLOOR function to the UnitPrice column of the Order Details table of the Northwind database.

SELECT OrderID, UnitPrice, FLOOR(UnitPrice) AS "Floor Value"
FROM "Order Details"
WHERE UnitPrice > 100
ORDER BY UnitPrice

© 2015 Microsoft