Re: how to take quotation marks away ?
- To: mathgroup at smc.vnet.net
- Subject: [mg48516] Re: [mg48491] how to take quotation marks away ?
- From: Selwyn Hollis <sh2.7183 at misspelled.erthlink.net>
- Date: Fri, 4 Jun 2004 04:49:32 -0400 (EDT)
- References: <200406020821.EAA15548@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
On Jun 2, 2004, at 4:21 AM, Florian Jaccard wrote:
> Dear Mathematica-specialists,
>
> I have a (long) list of the form {{"42.1,3.3"},{"3.1,4.2"}}
>
> How can I transform it to obtain {{42.1,3.3},{3.1,4.2}} ?
>
> I tried ToExpression, but it failed.
>
Here's one way:
wrap[x_String] := ToExpression[StringJoin["{", x, "}"]]
Apply[wrap,#]& /@ {{"42.1,3.3"}, {"3.1,4.2"}}
-----
Selwyn Hollis
http://www.math.armstrong.edu/faculty/hollis
(edit reply-to to reply)
- References:
- how to take quotation marks away ?
- From: "Florian Jaccard" <florian.jaccard@eiaj.ch>
- how to take quotation marks away ?