FromDigits

WMA link


FromDigits[l]

returns the integer corresponding to the decimal representation given by l. l can be a list of digits or a string.

FromDigits[l, b]

returns the integer corresponding to the base b representation given by l. l can be a list of digits or a string.

FromDigits can handle symbolic input:

Note that FromDigits does not automatically detect if you are providing a non-decimal representation:

FromDigits on empty lists or strings returns 0:

Floor
IntegerDigits