Re: Changing String to Real
- To: mathgroup at smc.vnet.net
- Subject: [mg41061] Re: Changing String to Real
- From: "Dr. Wolfgang Hintze" <weh at snafu.de>
- Date: Wed, 30 Apr 2003 04:24:45 -0400 (EDT)
- References: <b8lhn5$9e3$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Uli, try ToExpression[] x = StringTake["Uoc:0.752", {5, 7}]; y = ToExpression[x]; y 0.7 1/y 1.42857 Regards, Wolfgang Uli Wuerfel wrote: > Hi there, > we import a data file and want to extract a number from a string like > e.g. Uoc:0.752 > Of course we can extract 0.752 with Stringtake but we need to calculate > with this number. How can we make Mathematica to understand it as a real > number?? > Thank you for any kind of help, > Uli > > >