Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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.