标签:ide ring src ice limit 分享 gif alt strong
一、string.Format()
将【数字字符串】转为两位小数显示的字符串:
1 dt = dtResult.Select(it => new CommodityPriceLimitEntity 2 { 3 CommodityId = it.CommodityId.ToString(), 4 CommodityName = it.CommodityName.ToString(), 5 CommodityCode = it.CommodityCode.ToString(), 6 Price = string.Format("{0:F2}", it.Price) 7 }).ToList();
--------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------
持续更新中~~
蒙
2017-08-03 13:58 周四
标签:ide ring src ice limit 分享 gif alt strong
原文地址:http://www.cnblogs.com/Meng-NET/p/7279375.html