Turns a string in a given base into a bigint by multiplying each digit by the base raised to the power of its position in the string.
string
base
bigint
Turns a
string
in a givenbase
into abigint
by multiplying each digit by thebase
raised to the power of its position in thestring
.