int type cast to float in python code example
Example 1: python cast to float
float('1.234')
Example 2: float to int in python
# convert float to int
int(2.0) #output :2
Example 3: int type cast to float in python
x = int(1) # x will be 1
y = int(2.8) # y will be 2
z = int("3") # z will be 3