Re: String to number
- To: mathgroup at smc.vnet.net
- Subject: [mg73201] Re: String to number
- From: "Corey" <corey.maley at gmail.com>
- Date: Wed, 7 Feb 2007 05:34:27 -0500 (EST)
- References: <eq9bnn$mrf$1@smc.vnet.net>
Jose, Yes, just use "ToExpression[]": In[1]:= (12:52:44 on 2/6/07) ToExpression["125"]+ToExpression["23"] Out[1]= (12:52:44 on 2/6/07) 148 On Feb 6, 1:45 am, Jos=E9 Carlos Santos <jcsan... at fc.up.pt> 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