MathGroup Archive 1992

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: converting a number in base b to a number in base 10 using ^^ in Mathematica

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: Re: converting a number in base b to a number in base 10 using ^^ in Mathematica
  • From: keiper
  • Date: Thu, 26 Mar 92 15:33:00 CST

The parser has does some things in evaluating 2^^101.  To get it to pass
through the parser you need to manipulate strings:


In[1]:= base2tobase10conversion[n_Integer] := 
        ToExpression[StringJoin["2^^", ToString[n]]]

In[2]:= base2tobase10conversion[101]


Jerry B. Keiper
keiper at wri.com





  • Prev by Date: converting a number in base b to a number in base 10 using ^^ in Mathematica
  • Next by Date: Why won't MMA simplify parts of expressions?
  • Previous by thread: converting a number in base b to a number in base 10 using ^^ in Mathematica
  • Next by thread: Re: converting a number in base b to a number in base 10 using ^^ in Mathematica