FLOOR

Rounds a number down to the next lowest integer.

Syntax

FLOOR ( expression )

Arguments

  • expression: any valid numeric expression.

Return Type

Integer.

Examples

memsql> select floor(98.6), floor(-98.6);
+-------------+--------------+
| floor(98.6) | floor(-98.6) |
+-------------+--------------+
|          98 |          -99 |
+-------------+--------------+
Was this article useful?