bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL FLOOR() Function

Example

SELECT FLOOR(25.75);

Definition and Usage

The FLOOR() function returns the largest integer value that is smaller than or equal to a number.

Note

Also look at the ROUND() , CEIL() , CEILING() , TRUNCATE() , and DIV functions.

Syntax

FLOOR(
number
)

Parameter Values

ParameterDescription
numberRequired. A numeric value

Technical Details

Works in:From MySQL 4.0

Previous

MySQL EXP() Function

Next

MySQL GREATEST() Function