# To base and binadd

Here.

It uses Javascript, but only this:

return (+num).toString(+radix);


Ugh, no need for JS. Why not this:

This was really just a project to test out that little tiny bit of JS. BTW if I'm not mistaken, your code doesn't handle non-integers, but the JS one does:

True. I'll have to think about how to do that, although I think it's just a matter of a different end test in the IF, and just throwing in a decimal point when the value left to convert gets less than one.