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: [mg56415] Re: [mg56373] Converting from string to integer
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sun, 24 Apr 2005 03:29:07 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Magnus,

Try ToExpression.

ToExpression["0123"]
123

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/

From: Magnus [mailto:norge20_ at hotmail.com]
To: mathgroup at smc.vnet.net

Hey folks,

I have strings consisting of numbers. Now; how do I make them all of integer
type?

Ex:
"0123" ---> 123

Thanks,

Magnus,
Norway






  • Prev by Date: Re: Converting from string to integer
  • Next by Date: Shell script and Mathematica.
  • Previous by thread: Re: Converting from string to integer
  • Next by thread: Re: Converting from string to integer