I have one possibility that doesn't use int at all, and should not raise an exception unless the string does not represent a number
float(number)==float(number)//1
It should work for any kind of string that float accepts, positive, negative, engineering notation...