float values in python to int code example
Example 1: convert float to int python
# convert float to int
x=3.1415
y=int(x)
print(y) #outputs 3
Example 2: python cast to float
float('1.234')
# convert float to int
x=3.1415
y=int(x)
print(y) #outputs 3
float('1.234')