Python Function Reference

math.floor
Return the floor of x, the largest integer less than or equal to x.
Python 3.13
math.floor(x)
x
The number to round down.
Examples
Python 3.13
>>> import math
>>> math.floor(4.8)
4