一、string.Format()将【数字字符串】转为两位小数显示的字符串:1dt=dtResult.Select(it=>newCommodityPriceLimitEntity2{3CommodityId=it.CommodityId.ToString(),4CommodityName=it.CommodityName.ToString(),5CommodityCode=it.CommodityCode.ToString(),6Price=string.Format("{0:F2}"...
查看全文