In the process of making a base converter, I have come across a lack of routines for hex conversions. The binary<—>decimal ones on the routines page were helpful, but I would also like to have a hex conversion option. I have come up with a routine to convert decimal to hex, but have had a block trying to think of one to convert back has been a bit of a problem. I'd rather not have to resort to a bunch of
If X=1:"1->Str1 ... If X=15:"F->Str1
statements. Perhaps all of you people who are better at thinking up these things could help me.