摘要: 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 @ 2015-06-03 14:15 随风任飘遥 阅读(264) 评论(0) 推荐(0) 编辑
1、不要犯经验主义的错误,有些经验可能是错误的。 2、发现bug要及时处理,不可为了赶工而忽略。随机性出现的bug更要注意,因为这类bug更难发现,也就更能解决。