摘要: [一篮饭特稀原创,转载请注明出处http://www.cnblogs.com/wanghafan/archive/2012/05/18/2508113.html]四舍五入View Code 1 public static decimal Round(decimal d, decimal unit)2 {3 decimal rm = d % unit;4 decimal result = d - rm;5 if (rm >= unit / 2)6 result ... 阅读全文
posted @ 2012-05-18 17:22 一篮饭特稀 阅读(2669) 评论(1) 推荐(0) 编辑