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
Use int(your non integer number) will nail it.
int(your non integer number)
print int(2.3) # "2" print int(math.sqrt(5)) # "2"