示例#1
0
 /// <summary>
 /// 四舍五入 小数点后取2位
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public static double Round2(object value)
 {
     return(Round(TypeParse.StrToDouble(value, 0), 2));
 }
示例#2
0
 /// <summary>
 /// 四舍五入 小数点后取4位
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public static double Round6(string value)
 {
     return(Round(TypeParse.StrToDouble(value, 0), 6));
 }
示例#3
0
 /// <summary>
 /// 查询的结束时间
 /// </summary>
 /// <param name="date"></param>
 public static string EndDateForQuery(string date)
 {
     return(EndDateForQuery(TypeParse.StrToDateTime(date)));
 }