Base conversions

There are two common approaches for base conversions:

  • Subtraction: start from the largest bit and work your way downwards subtracing values as you go down the powers. (standard method)

  • Divison-remainder: divide by each time, taking the remainder as the binary number.

    This method allows us to easily convert to any base.