G
Guest
This should be simple, but either I'm blind, stupid or going mad.
I'm trying to convert a string, containing a numeric value to a double (in
C#), but when I run the code below I get the error message "Input string was
not in a correct format." Why?
string s = "8.0";
double d = Convert.ToDouble(s);
I'm trying to convert a string, containing a numeric value to a double (in
C#), but when I run the code below I get the error message "Input string was
not in a correct format." Why?
string s = "8.0";
double d = Convert.ToDouble(s);