Python floor(x) function returns the largest integer that is less than x. It's a method of math module.
floor(x)
math
>>> import math >>> math.floor(0.2)
0
>>> math.floor(-1.8)
-2
>>> math.floor(32)
32
>>> math.floor(-32)
-32