摘要: 1.只要求保留N位不四舍5入 float f = 0.55555f; int i =(int)(f * 100); f = (float)(i*1.0)/100; 2.保留N位,四舍五入 . decimal d= decimal.Round(decimal.Parse( "0.55555 "),2) 阅读全文
posted @ 2019-05-03 00:17 DerekHan 阅读(52645) 评论(1) 推荐(0) 编辑