Returns the largest integer value not greater than X. Returns NULL if X is NULL.
SELECT FLOOR(1.23), FLOOR(-1.23);
1, -2
For exact-value numeric arguments, the return value has an exact-value numeric type. For string or floating-point arguments, the return value has a floating-point type.
SELECT FLOOR(1.23), FLOOR(-1.23);
1, -2