Skip to main content

Working with arbitrary bases

Daniel Farlow
Software Engineer

This post details how to work with arbitrary bases in a positional numeral system (e.g., decimal, binary, etc.). Specifically, this post details how to convert numbers from base 10 to base bb in such a way that not only is the whole number portion converted but also the fractional/radix portion as well.