Legacy Documentation

The Mathematical ExplorerTM (2001)

This is documentation for an obsolete product.
Current products and services
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.
  • Example: FromDigits[ 3,7,4 ] .
  • FromDigits is effectively the inverse of IntegerDigits.
  • FromDigits[ list , n , b ] takes n to be an exponent, while FromDigits[ list , rep , n , b ] takes rep to be repeated, so that FromDigits can also be used as the inverse of RealDigits.
  • Since IntegerDigits[ n ] discards the sign of n, FromDigits[IntegerDigits[ n ]] is Abs[ n ] not just n.
  • The digits in list and the base b need not be positive integers and can be any expression.
  • See The Mathematica Book on the web:Section 3.1.3.
  • See also: IntegerDigits, RealDigits, FromContinuedFraction.