baseToDenary

Converts from any base to denary using the digits of the provided base

baseNumber is the number in another base to convert to denary baseDigits is the digits of the base to convert from, in asennding order

baseToDenary
(
string baseNumber
,
char[] baseDigits
)

Examples

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

Meta