in reply to Re^2: acme::tools num2code function
in thread acme::tools num2code function

The first sentence of the documentation for code2num and num2code says:

num2code() convert numbers (integers) from the normal decimal system to some arbitrary other number system.

There are more examples of what the functions do. What parts exactly are you having problems with? If you suspect a bug in either of the functions, please show the result you expect and the result you get.