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[list,MixedRadix[blist]]
uses the mixed radix with list of bases blist.

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  (5)Basic Examples  (5)

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]=

Construct a number from digits in a mixed radix system:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 1996
(3.0)
| Updated in 2015
(10.2)
Translate this page: