Here I will show how to convert a float number to integer using python.
In my script I have a number a = 1.4
a = 1.4
To convert it to integer use following code:
After converting float a to integer we will get output as 1.
Add above two line in a script(floatToInt.py) and execute it.
a = 1.5 print int(round(a))
Now execute script with command python floatToInt.py