MathGroup Archive 2010

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

Search the Archive

Re: Convert string list to number list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg106620] Re: Convert string list to number list
  • From: dh <dh at metrohm.com>
  • Date: Tue, 19 Jan 2010 05:12:05 -0500 (EST)
  • References: <hj12ud$b9u$1@smc.vnet.net>


Hi,

if you do not want it to convert on input, you may still use e.g. 

ToExpression:

ToExpression@{"00", "01", "02", "03", "04", "05", "06", "07"}

Daniel





Canopus56 wrote:

> On importing a space delimited text file,  I have an extracted list of zero-padded two-digit integers in the form: Amylist{"00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"}  How do I convert these to real numbers or integers? Thanks - Kurt  I have reviewed the Mathematica documentation and a few books looking for the equivalent of a simple string-to-number function like vba's "Value".  Could not find an answer. Thanks.       

> 




  • Prev by Date: Replace list element based on a condition how to
  • Next by Date: Re: Convert string list to number list
  • Previous by thread: Re: Convert string list to number list
  • Next by thread: Re: Convert string list to number list