MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Conversion of text into Mathematica expressions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28185] Re: [mg28160] Conversion of text into Mathematica expressions
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Tue, 3 Apr 2001 02:38:03 -0400 (EDT)
  • References: <200104020618.CAA17312@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Why not use ToExpression? Since it has the attribute Listable you may apply
directly:

In[1]:=
ToExpression[{"2.5", "3.5"}]
Out[1]=
{2.5, 3.5}


In[2]:=
Attributes[ToExpression]
Out[2]=
{Listable, Protected}

Tomas Garza
Mexico City
----- Original Message -----
From: "Max Ulbrich" <ulbrich at biochem.mpg.de>
To: mathgroup at smc.vnet.net
Subject: [mg28185] [mg28160] Conversion of text into Mathematica expressions


> Hi,
>
> does anybody know if there is a possibility to convert text into
> expressions?
> I have something like
>
> {"2.5","3.5"...}
>
> and want to convert it to
>
> {2.5,3.5...}
>
> How can I do that?
>
> Max
>
>



  • Prev by Date: MATHEMATICA WARNING
  • Next by Date: Text and 3D graphics overlay
  • Previous by thread: Re: Conversion of text into Mathematica expressions
  • Next by thread: Re: Conversion of text into Mathematica expressions