how do I convert from string to double or any other number? In C we use to
have atoi, and VB we had the tons of convertion functions.
Thanks
Ernesto
> how do I convert from string to double or any other number? In C we
> use to have atoi, and VB we had the tons of convertion functions.
string str = "12.2";
double dbl;
dbl = double.Parse(str);
or
Convert.ToDouble(str);
--
Greetings
Jochen
string textbox = "5";
double testdbl = System.Double.Parse(textbox);
--
Joe Feser
Fesersoft
http://www.fesersoft.com/
.Net, XML, XSLT, SQL
Free Code, Articles and Information.
"Ernesto Herrera" <ern...@bellsouth.net> wrote in message
news:jceZ8.49879$1q2.3...@e3500-atl2.usenetserver.com...
.NET provides tons of conversion function, too. You could use
Convert.ToDouble or double.Parse / double.TryParse
Jens
"Jens Gruschel" <grus...@esteam.de> wrote in message
news:um9pNaZLCHA.1608@tkmsftngp09...