ToDouble
Converts a string to a double
Source
public static double ToDouble(this string theValue)
{
double retNum;
var result = double.TryParse(theValue, out retNum);
return result ? retNum : 0;
}
Example
string s = "2.2365";
double d = s.ToDouble(); // 2.2365