摘要: 1 Double dValue = 95.12345; 2 3 int iValue = 10000; 4 string strValue = "95.12345"; 5 string result = ""; 6 7 result = Convert.ToDouble(dValue).ToString("0.00");//保留小数点后两位,结果为95.12 8 result = Convert.ToDouble(iValue).ToString... 阅读全文
posted @ 2013-04-14 11:34 Seasons1987 阅读(332) 评论(0) 推荐(0) 编辑