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 from string to integer

  • To: mathgroup at smc.vnet.net
  • Subject: [mg56417] Re: [mg56373] Converting from string to integer
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Sun, 24 Apr 2005 03:29:11 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <200504230516.BAA03070@smc.vnet.net>
  • Reply-to: murray at math.umass.edu
  • Sender: owner-wri-mathgroup at wolfram.com

   ToExpression["123"]

Magnus wrote:
> Hey folks,
> 
> I have strings consisting of numbers. Now; how do I make them all of integer
> type?
> 
> Ex:
> "0123" ---> 123
> 
> Thanks,
> 
> Magnus,
> Norway
> 
> 
> 

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: Converting from string to integer
  • Next by Date: Re: Working with huge text files with mathematica
  • Previous by thread: Re: Converting from string to integer
  • Next by thread: Re: Converting from string to integer