I think the best way to understand this is in discussion with an alien (at least as an analogy).
Definition $x$ is a number in base $b$ means that $x$ is a string of digits $<b$.
Examples The string of digits 10010011011 is a number in base 2, the string 68416841531 is a number in base 10, BADCAFE is a number in base 16.
Now Suppose I grew up on the planet QUUX where everyone is taught to work in $q$ for their whole lives, and I meet you who is used to base $b$. So you show me a number, and what do I do? I need a way to interpret it:
Definition I can interpret a number in base $b$ (Note: $b$ is a number in base $q$) by the following formula
$$\begin{array}{rcl}
[\![\epsilon]\!] &=& 0 \\
[\![\bar s d]\!] &=& [\![\bar s]\!] \times b + d
\end{array}$$
where $\epsilon$ denotes the empty string, and $\bar s d$ denotes a string ending in the digit $d$. See my proof that addition adds for an introduction to this notation.
So what's happened here? You've given me a number in base $b$ and I've interpreted it into base $q$ without any weird philosophy about what numbers truly are.
Key The key to this is that the $\times$ and $+$ I have are functions that operate on base $q$ numbers. These are simple algorithms defined recursively on base $q$ numbers (strings of digits).
This may seem a bit abstract since I've been using variables rather than actual numbers throughout. So let's suppose you are a base 13 creature (using symbols $0123456789XYZ$) and I am used to base 7 (which is much more sensible) using symbols $\alpha \beta \gamma \delta \rho \zeta \xi$.
So I've seen your alphabet and tabulated it thus:
$$\begin{array}{|c|c||c|c||c|c|} \hline
0 & \alpha & 1 & \beta & 2 & \gamma \\
3 & \delta & 4 & \rho & 5 & \zeta \\
6 & \xi & 7 & \beta\alpha & 8 & \beta\beta \\
9 & \beta\gamma & X & \beta\delta & Y & \beta\rho \\
& & Z & \beta\zeta & & \\ \hline
\end{array}$$
So I know that you work in base $\beta\xi$, and I know what base 7 number any digit you write corresponds to.
Now if we were discussing physics and you were telling me about fundamental constants (say) $60Z8$ so I need to interpret this:
$$\begin{array}{rcl}
[\![60Z8]\!] &=& \xi (\beta\xi)^3 + \alpha (\beta\xi)^2 + \beta \zeta (\beta\xi) + \beta\beta \\
\end{array}$$
So I start by multiplying out $\beta \zeta \times \beta\xi$ but this is grade school stuff for me, I recall:
Quux multiplication table
$$\begin{array}{|c|cccccc|} \hline \\
\times & \beta & \gamma & \delta & \rho & \zeta & \xi \\ \hline
\beta & \beta & \gamma & \delta & \rho & \zeta & \xi \\
\gamma & \gamma & \rho & \xi & \beta\beta & \beta\delta & \beta\zeta \\
\delta & \delta & \xi & \beta\gamma & \beta\zeta & \gamma\beta & \gamma\rho \\
\rho & \rho & \beta\beta & \beta\zeta & \gamma\gamma & \gamma\xi & \delta\delta \\
\zeta & \zeta & \beta\delta & \gamma\beta & \gamma\xi & \delta\rho & \rho\gamma \\
\xi & \xi & \beta\zeta & \gamma\rho & \delta\delta & \rho\gamma & \zeta\beta \\
\beta\alpha & \beta\alpha & \gamma\alpha & \delta\alpha & \rho\alpha & \zeta\alpha & \xi\alpha \\ \hline
\end{array}$$
so to find $\beta \zeta \times \beta\xi$ I do:
$$\begin{array}{ccc}
& \beta & \zeta \\
\times & \beta & \xi \\ \hline
& \xi & \gamma \\
& \rho & \\
\beta & \zeta & \\ \hline
\delta & \beta & \gamma \\
\gamma & & \\
\end{array}$$
so I've got this far
$$\begin{array}{rcl}
[\![60Z8]\!] &=& \xi (\beta\xi)^3 + \alpha (\beta\xi)^2 + \beta \zeta (\beta\xi) + \beta\beta \\
&=& \xi (\beta\xi)^3 + \alpha (\beta\xi)^2 + \delta \beta \gamma + \beta\beta \\
\end{array}$$
Now I need to perform the addition using the algorithm which was mentioned before:
$$\begin{array}{ccc}
\delta & \beta & \gamma \\
& \beta & \beta \\ \hline
\delta & \gamma & \delta \\
\end{array}$$
so
$$\begin{array}{rcl}
[\![60Z8]\!] &=& \xi (\beta\xi)^3 + \alpha (\beta\xi)^2 + \beta \zeta (\beta\xi) + \beta\beta \\
&=& \xi (\beta\xi)^3 + \alpha (\beta\xi)^2 + \delta \beta \gamma + \beta\beta \\
&=& \xi (\beta\xi)^3 + \alpha (\beta\xi)^2 + \delta \gamma \delta \\
\end{array}$$
and continuing this way I get $$[\![60Z8]\!] = \delta\beta\gamma\gamma\gamma\rho.$$
In summary: If I have my own conception of number in terms of base $q$ strings of digits, then I have way to interpret your numbers from base $b$ into my own system, based on the fundamental arithmetic operations - which operate natively in base $q$.
stringand returns anint), and an algorithm which takes a number and returns its representation in a given base. – Andrej Bauer Mar 6 at 15:23