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: [mg56399] Re: [mg56373] Converting from string to integer
  • From: "David Annetts" <davidannetts at aapt.net.au>
  • Date: Sun, 24 Apr 2005 03:28:50 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Magnus,

> I have strings consisting of numbers. Now; how do I make them 
> all of integer type?
> 
> Ex:
> "0123" ---> 123

One way is  
	Read[StringToStream["0123"], Number]

Head[%] tells you the results is an Integer

Regards,

Dave.


  • Prev by Date: Re: Re: Re: multiple 3d plots
  • Next by Date: Re: Converting from string to integer
  • Previous by thread: Re: Converting from string to integer
  • Next by thread: Re: Converting from string to integer