摘要:
double a = 12.357; double b = double.Parse(a.ToString("0.00")); decimal d = 12.34m; decimal dNew = decimal.Round(d,2);//2表示舍入到2位小数 阅读全文
posted @ 2007-12-07 09:57 sunrack 阅读(1637) 评论(0) 推荐(0)
|
摘要:
double a = 12.357; double b = double.Parse(a.ToString("0.00")); decimal d = 12.34m; decimal dNew = decimal.Round(d,2);//2表示舍入到2位小数 阅读全文
posted @ 2007-12-07 09:57 sunrack 阅读(1637) 评论(0) 推荐(0) |
||