Since I am pretty new to C sharp I am unable to solve simple conversion from string to double.
Example would be like this:
string sVal = "-7.0"; //This is negative number.
double dVal = 0.0;
Now I need to assign dVal with value from sVal and I did try those examples but none of them worked.
dVal = double.parse(sval);
nor it worked this way
dVal = System.Convert.ToDouble(sVal);
Please advise what am I doing wrong and how should I solve this pretty simple problem.
Thanks in advance.
View Complete Post