public static bool TryParseDouble(string s, out double i) { i = 0; try { i = double.Parse(s); return true; } catch { return false; } }