MathGroup Archive 2005

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

Search the Archive

Re: Converting Strings to Ints.


data={"12223","11313","2424"};

ToExpression[data]

{12223, 11313, 2424}


Bob Hanlon

> 
> From: Chrisantha <ctf20 at sussex.ac.uk>
To: mathgroup at smc.vnet.net
> Date: 2005/12/22 Thu AM 12:04:38 EST
> Subject: [mg63292] [mg63277] Converting Strings to Ints.
> 
> Dear All,
> 
> 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?
> 
> Yours Ever and Merry Christmas,
> 
> Chrisantha
> 
> 


  • Prev by Date: RE: Converting Strings to Ints.
  • Next by Date: RE: Converting Strings to Ints.
  • Previous by thread: RE: Converting Strings to Ints.
  • Next by thread: RE: Converting Strings to Ints.