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 |
+-------------+--------------+