摘要: 要四舍五入?很简单: (int)(0.5+0.5)就是1,所以,对于从十分位四舍五入到个位只要在强行转换到int之前先加0.5,其他的位类似! 阅读全文
posted @ 2008-11-03 17:10 pchgo 阅读(281) 评论(0) 推荐(0) 编辑