fixed comparing string to float if string is valid for int