|
[Date Index]
[Thread Index]
[Author Index]
Re: String to number
- To: mathgroup at smc.vnet.net
- Subject: [mg73200] Re: String to number
- From: dh <dh at metrohm.ch>
- Date: Wed, 7 Feb 2007 05:30:24 -0500 (EST)
- References: <eq9bnn$mrf$1@smc.vnet.net>
Hi José,
for the general case, we have: ToExpression
If more control is needed, we may use Read[StringToStream[string],
type], see manual. E.g.:Read[StringToStream[str], Number]
Still another possibility is to write the string to a file and use
Import to read it.
Daniel
José Carlos Santos 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:
TextListPlot with colored texts
Next by Date:
Re: Integrating SphericalHarmonicY
Previous by thread:
Re: String to number
Next by thread:
Re: String to number
|