FromDigits

FromDigits[list]
constructs an integer from the list of its decimal digits.

FromDigits[list,b]
takes the digits to be given in base b.

FromDigits["string"]
constructs an integer from a string of digits.

FromDigits["string","Roman"]
constructs an integer from Roman numerals.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Construct a number from its base-10 digits:

In[1]:=
Click for copyable input
Out[1]=

Base-2 digits:

In[1]:=
Click for copyable input
Out[1]=

Construct a number from digits given as string:

In[1]:=
Click for copyable input
Out[1]=

Construct a number from digits base 2:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 1996
(3.0)
| Updated in 2007
(6.0)