Skip to content

FromDigits

FromDigits[list, base] returns that number that the list of digits represents in base base.

Attributes[FromDigits] := {Protected}

Simple examples

In[1]:= FromDigits[{3, 2, 1}]
Out[1]= 321
In[2]:= FromDigits[{1, 1, 0, 1}, 2]
Out[2]= 13