Convert a decimal number to any base