parse int to base 10