Watch the 7.3 Webinar On-Demand
This new release brings updates to Universal Storage, query optimization, and usability that you won’t want to miss.

FLOOR

Rounds a number down to the next lowest integer.

Syntax

FLOOR ( expression )

Arguments

  • expression: any valid numeric expression.

Return Type

Integer.

Examples

SELECT FLOOR(98.6), FLOOR(-98.6);
+-------------+--------------+
| FLOOR(98.6) | FLOOR(-98.6) |
+-------------+--------------+
|          98 |          -99 |
+-------------+--------------+