In Python, if I have a list with float numbers, how can I find all entries, which are round figures?
e.g. Checking x=[1.234,0.000000,2.0,0.0001] gives output
>>> False
True
True
False
I tried isinstance function, which did not worked :
x=[1.234,0.000000,2.0,0.0001]
for i in x:
print(isinstance(i, int))
I guess technically 2.0 and such are not of type integers. So I can not use it like that.