3.58 Exercise 3.58
The procedure expand implements long division,
returning a stream of digits in the result (after the
decimal – it is assumed that the numerator is smaller than
the denominator). It also lets the user specify the base,
or radix, of the result.