RE: Changing String to Real
- To: mathgroup at smc.vnet.net
- Subject: [mg41038] RE: [mg41031] Changing String to Real
- From: "David Park" <djmp at earthlink.net>
- Date: Wed, 30 Apr 2003 04:19:46 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Uli, Use ToExpression. "Uoc:0.752" ToExpression[StringDrop[%, 4]] Head[%] "Uoc:0.752" 0.752 Real David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ From: Uli Wuerfel [mailto:uli.wuerfel at fmf.uni-freiburg.de] To: mathgroup at smc.vnet.net 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