from string_to_atoi import myAtoi def my_atoi_main(s): res=myAtoi(s) if res < -2**31: res = -2**31 elif res > 2**31 - 1: res = 2**31 - 1 return res