ToDouble

        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

Description

Converts a string to a double

Details

Double click on the code to select all.

 

;