Removing leading 0 from number in string, int function error

It seems ‘int’ treats the number as octal, so you only get 0…7 symbols. There must be a way to tell int to treat the number as a decimal, but I can’t info on that.