Python\'s math module contain handy functions like floor & ceil. These functions take a floating point number and return the nearest integer be
floor
ceil
Combining two of the previous results, we have:
int(round(some_float))
This converts a float to an integer fairly dependably.