Arbitrary precision base conversion by Daniel Gehriger <gehriger@linkcad.com>
Permission for use was given here.
This has been heavily modified since copying, has been hardcoded for a specific case, then translated to C.