摘要: 通常我们使用Math.Round()函数,是直接调用的,如: Math.Round(45.367,2) //返回: 45.37 Math.Round(45.365,2) //返回: 45.36 上面不是我们理解的四舍五入,是四舍六入,需要改成这样,如: Math.Round(Convert.ToDe 阅读全文
posted @ 2022-02-07 11:01 小小邪 阅读(2358) 评论(0) 推荐(0) 编辑