# convert float to int
x=3.1415
y=int(x)
print(y) #outputs 3
# convert float to int
int(2.0) #output :2
int(your_number)
float1=1.2345
int1=int(float1)
a = 5
a = float(a) # int to float
floatNum = float(intNum)
pi = 3.14 # float number
print(type(pi))
# Output class 'float'
# converting float integer
num = int(pi)
print("Integer number:", num)
# Output 3
print(type(num))
# Output class 'int'
print int(2.3) # "2"
print int(math.sqrt(5)) # "2"