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.

Details

Examples

open allclose all

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

Scope  (5)

Generalizations & Extensions  (1)

Applications  (3)

Properties & Relations  (1)

Possible Issues  (3)

See Also

IntegerDigits  RealDigits  IntegerString  FromRomanNumeral  FromContinuedFraction  NumberForm  DigitCount  PowerRange  LetterNumber  Interpreter

Tutorials

Introduced in 1996
(3.0)
| Updated in 2015
(10.2)