Direct conversion between two bases

45 views Asked by At

I am looking to convert between two bases in Scratch. I would like a direct conversion, not one that goes to decimal as an intermediate step. Is there an algorithm or function that can do this for any two bases? If possible, could it have compatibility with bases beyond 10, preferably to 36?

I tried some algorithms that I learned in a number theory class but it's hard to transfer them over to code, especially with the limitations of Scratch.

0

There are 0 answers