>>> a=123 >>> b=123.123 >>> isinstance(a,int) True >>> isinstance(b,float) True >>> isinstance(b,int) False
assert b%a==0