笔记13-8-22

来源:互联网 发布:淘宝自定义分类模板 编辑:程序博客网 时间:2024/06/05 08:06

float counts = 11/2 ;

counts是5,必须让11或2变成浮点才能得到浮点的counts;

向上下取整要注意。

原创粉丝点击