how to force a float into an integer in python code example Example: convert float to int python # convert float to int x=3.1415 y=int(x) print(y) #outputs 3