Define Radix conversion method
One clever way to transform binary numbers to BCD notation (binary-coded decimal) is the "double dabble algorithm". It can be adapted to transform binary numbers directly to ASCII digits, and to transform binary numbers into other bases. The double dabble algorithm as well works for mixed bases -- for instance, for converting a binary number of seconds into the decimal digits for days, 10s of hours, hours, 10s of minutes, minutes, 10s of seconds and seconds.