Python floor function

Python floor(x) function returns the largest integer that is less than x. It's a method of math module.

>>> import math
>>> math.floor(0.2)
0
>>> math.floor(-1.8)
-2
>>> math.floor(32)
32
>>> math.floor(-32)
-32