denaryToBase

Converts from denary to another base

denaryNumber is the denary to convert newBaseDigits are the digits of the new base in the ascending order, for hex, this will be cast(char[])"0123456789ABCDEF" newbaseDigits must have at least 2 digits

string
denaryToBase

Examples

assert(denaryToBase(161,cast(char[])"0123456789ABCDEF") == "A1");

Meta