Re: type casting
- To: mathgroup at smc.vnet.net
- Subject: [mg39844] Re: type casting
- From: "Steve Luttrell" <luttrell at _removemefirst_westmal.demon.co.uk>
- Date: Sat, 8 Mar 2003 02:51:15 -0500 (EST)
- References: <b49nga$fef$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
You can do lots of useful things with ToExpression, which takes any string and converts it into the corresponding Mathematica expression. For instance. ToExpression["1.23"] will return the real number 1.23, and ToExpression["2/7"] will return the rational number 2/7, and so on. You can then manipulate and output these expressions in any way that you please. -- Steve Luttrell West Malvern, UK "Tolonen, Ellen N" <entolonen at utep.edu> wrote in message news:b49nga$fef$1 at smc.vnet.net... > Hello. > > I am I new Mathematica user and am trying to master input/output. Is there > any way to type cast a string into number format? > > > Ellen Tolonen > entolonen at utep.edu >