int representGoal = (int) (graph.goal*representRatio+0.5);
只需要加0.5取整。
posted on 2013-11-29 10:41 代码王子 阅读(461) 评论(0) 编辑 收藏 举报