Discussion:
String to double question
(too old to reply)
Keith
2010-04-20 03:35:01 UTC
Permalink
Hello,

I have a string, created with the following code...

String ^ a = gcnew String("123.4");

How do I convert the value of a to a double numberic value?

Thank you.

Keith
Faisal
2010-04-20 04:18:50 UTC
Permalink
Post by Keith
Hello,
I have a string, created with the following code...
String ^ a = gcnew String("123.4");
How do I convert the value of a to a double numberic value?
Thank you.
Keith    
Use
Double::TryParse( a, dbl )
Keith
2010-04-20 15:45:01 UTC
Permalink
Thank you.
Post by Faisal
Post by Keith
Hello,
I have a string, created with the following code...
String ^ a = gcnew String("123.4");
How do I convert the value of a to a double numberic value?
Thank you.
Keith
Use
Double::TryParse( a, dbl )
.
Loading...