Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 694 Bytes

File metadata and controls

36 lines (28 loc) · 694 Bytes
description
Returns the value from the specifed expression rounded to the nearest equal or smaller integer.

FLOOR

Syntax

FLOOR(numeric_expression NUMERIC) → INTEGER

  • numeric_expression: The number (DOUBLE, FLOAT, INTEGER) used to compute the floor.

Examples

{% code title="FLOOR example" %}

SELECT FLOOR(0)
-- 0

{% endcode %}

{% code title="FLOOR example" %}

SELECT FLOOR(45.76)
-- 45

{% endcode %}

{% code title="FLOOR example" %}

SELECT FLOOR(-1.3)
-- -2

{% endcode %}