Message from discussion
Converting a string to numeric?
MIME-Version: 1.0
Received: by 10.150.189.9 with SMTP id m9mr730078ybf.8.1242066753870; Mon, 11
May 2009 11:32:33 -0700 (PDT)
Date: Mon, 11 May 2009 11:32:33 -0700 (PDT)
X-IP: 82.6.15.236
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.9)
Gecko/2009040821 Firefox/3.0.9 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Message-ID: <f584458e-a576-479c-b5a6-35d07bd9a904@t11g2000vbc.googlegroups.com>
Subject: Converting a string to numeric?
From: Zee <zuhair.abdu...@gmail.com>
To: Xpress-MP <xpressmp@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Hi guys
I need some help. I have a file with both numeric and character data.
and i imported these to a 2d array(of type string) in mosel.
Now, this is what I wanna try...
Can I access a column from this array and then extract the numeric
value (in effect i wanna convert the string type info to numeric data
type) .
Like for ex... if i have the following row in an array in mosel
1 12 asd 34 abb
can i access the values 1, 12 and 34 and use them as numerics (as in,
can i later on use these in calculations as numbers; they are
currently defined as string types))?
is there a function which can convert string type to numeric ...or
something that can extract numeric information from within a
string????