public static int ToInt(this string txt) { return(StringExtensions.ToNumber <int>(txt, (string s) => Convert.ToInt32(Convert.ToDouble(s)), 0)); }
public static double ToDouble(this string txt) { return(StringExtensions.ToNumber <double>(txt, (string s) => Convert.ToDouble(s), 0.0)); }
public static double ToFloat(this string txt) { return((double)StringExtensions.ToNumber <float>(txt, (string s) => Convert.ToSingle(s), 0f)); }
public static double ToLong(this string txt) { return((double)StringExtensions.ToNumber <long>(txt, (string s) => Convert.ToInt64(s), 0L)); }