Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: String to number

  • To: mathgroup at
  • Subject: [mg73196] Re: [mg73174] String to number
  • From: Stern <nycstern at>
  • Date: Wed, 7 Feb 2007 05:14:12 -0500 (EST)
  • References: <>

Ooops, there is a much simpler solution:


So, ToExpression["123"] -> 123

On 2/6/07, Jos=E9 Carlos Santos <jcsantos at> wrote:
> Hi all:
> The ToString command generates a string from an expression. Is there a
> similar command which generates numbers from strings? What I mean by
> this is: is there a command (let's call it ToNumber) such that
> ToNumber["12"]
> generates the number 12?
> Best regards,
> Jose Carlos Santos

  • Prev by Date: Re: String to number
  • Next by Date: 2D-graph with TextListPlot command
  • Previous by thread: Re: String to number
  • Next by thread: Re: String to number