MathGroup Archive 2005

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

Search the Archive

Re: Converting Strings to Ints.


Hi,
> 
> I have a list of strings representing numbers, i.e. a =
> {"12223","11313","2424"} that I generated in XML and read into
> mathematica. How do I convert this into a list of integers?

ToExpression/@{"12223","11313","2424"}

should do exactly what you want.

cheers,

albert


  • Prev by Date: Re: Converting Strings to Ints.
  • Next by Date: Re: Replacement equivalence?
  • Previous by thread: Re: Converting Strings to Ints.
  • Next by thread: Re: Converting Strings to Ints.