Exemple #1
0
 /// <summary>
 /// 四舍五入 小数点后取4位
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public static double Round6(string value)
 {
     return(Round(TypeParse.StrToDouble(value, 0), 6));
 }
Exemple #2
0
 /// <summary>
 /// 四舍五入 小数点后取2位
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public static double Round2(object value)
 {
     return(Round(TypeParse.StrToDouble(value, 0), 2));
 }