It is not a problem to check a small number for whether it is a float or an integer
>>> 4.0.is_integer()
True
>>> 4.123.is_integer()
False
if a - int(a) == 0:
print('Integer')
else:
print('Not Integer')
But when I have a large number, it does not work anymore:
>>> 31231242354234534534534534534534534534534534535434645755453543543453534534534534534535345346756423423.111.is_integer()
True
I would like to check very many and very large numbers, and the results of my calculations are floating-point numbers. I want to check if the result is an integer. For large numbers, the conventional methods do not work.