Skip to content

FLOOR

  • x: The numerical expression or decimal number that will be rounded down to the nearest smaller or equal integer.
SELECT FLOOR(1.99);
1

The FLOOR() function in MySQL is used to return the largest integer value that is less than or equal to a given number. In this example, since the provided number is 1.99, the FLOOR() function produces the output of 1, which is the largest integer that is less or equal to 1.99.