python convert float to decimal 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: w=how to tell if decimal in python
i = 100
f = 1.23
print(type(i))
print(type(f))
# <class 'int'>
# <class 'float'>