Re: Converting from string to integer
- To: mathgroup at smc.vnet.net
- Subject: [mg56408] Re: [mg56373] Converting from string to integer
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Sun, 24 Apr 2005 03:28:58 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
Use ToExpression data=ToString/@Table[Random[Integer,10000],{10}] {"7931", "4558", "778", "6522", "2889", "8762", "6911", "5409", "2991", "3028"} ToExpression/@data {7931, 4558, 778, 6522, 2889, 8762, 6911, 5409, 2991, 3028} Bob Hanlon > > From: "Magnus" <norge20_ at hotmail.com> To: mathgroup at smc.vnet.net > Date: 2005/04/23 Sat AM 01:16:05 EDT > To: mathgroup at smc.vnet.net > Subject: [mg56408] [mg56373] Converting from string to integer > > Hey folks, > > I have strings consisting of numbers. Now; how do I make them all of integer > type? > > Ex: > "0123" ---> 123 > > Thanks, > > Magnus, > Norway > > >