控制DOUBLE,DECIMAL小数点的位数
摘要:
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 @ 2009-09-11 15:48 YoshiroGu 阅读(260) 评论(0) 推荐(0) 编辑
posted @ 2009-09-11 15:48 YoshiroGu 阅读(260) 评论(0) 推荐(0) 编辑
posted @ 2009-09-11 15:47 YoshiroGu 阅读(173) 评论(0) 推荐(0) 编辑
posted @ 2009-09-11 15:45 YoshiroGu 阅读(523) 评论(1) 推荐(0) 编辑