Re: String to number
- To: mathgroup at smc.vnet.net
- Subject: [mg73196] Re: [mg73174] String to number
- From: Stern <nycstern at gmail.com>
- Date: Wed, 7 Feb 2007 05:14:12 -0500 (EST)
- References: <200702060819.DAA24596@smc.vnet.net>
Ooops, there is a much simpler solution: ToExpression[STRING] So, ToExpression["123"] -> 123 On 2/6/07, Jos=E9 Carlos Santos <jcsantos 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 > >
- References:
- String to number
- From: José Carlos Santos <jcsantos@fc.up.pt>
- String to number