格式化金额字段添加千位符

//LSWBZD_JD精度
  drTmp["TotalValue"] = string.Format(string.Format(@"{0}{1}{2}", "{0:N", drTmp["LSWBZD_JD"], "}"),Convert.ToDecimal(drTmp["TotalValue"]));
   drTmp["TotalTaxExValue"] = string.Format(string.Format(@"{0}{1}{2}", "{0:N", drTmp["LSWBZD_JD"], "}"), Convert.ToDecimal(drTmp["TotalTaxExValue"]));
 drTmp["ReceiptValue"] = string.Format(string.Format(@"{0}{1}{2}", "{0:N", drTmp["LSWBZD_JD"], "}"), Convert.ToDecimal(drTmp["ReceiptValue"]));
//可以拼接转换符

 

你可能感兴趣的:(格式化金额字段添加千位符)