/// <summary> /// Convert <see cref="string"/> to <see cref="double"/> with specified precision. /// </summary> /// <param name="str"></param> /// <param name="digits"></param> /// <param name="defaultVal"></param> /// <returns></returns> public static double ToRoundDouble(string str, int digits, double defaultVal = 0D) => NumericConv.StringToRoundDouble(str, digits, defaultVal);