March 2006
Intermediate to advanced
576 pages
11h 43m
English
The general conversion algorithm described in Algorithm 7.1 for natural numbers has a mainly theoretical interest. In the context of general-purpose binary computers, a general circuit to convert n-digit base-B1 numbers into m-digit base-B2 ones doesn't seem to warrant practical interest. A block diagram is nevertheless presented in Figure 14.1 to illustrate a possible implementation of such a circuit, assuming a binary coding for the digits in both bases.

Figure 14.1 Block diagram of a general base converter.
The multiplier by B1, the adder stage, and the divider by B2 are binary operators defined as follows: