NumbersSQL standard
FLOOR
Rounds a number down — to the nearest integer that isn't larger than it.
Syntax
FLOOR(<number>)
Drops the fractional part towards the smaller number: 4.9 becomes 4. An integer stays as it is. Handy for sorting values into ranges: amounts by hundreds, ages by decades.