Mathematica 9 is now available
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.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63292] Re: [mg63277] Converting Strings to Ints.
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Fri, 23 Dec 2005 05:08:19 -0500 (EST)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

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.