明明是Math.ceil(),却变小了。

两个整数相除,先保留小数。直接/,会丢失精度。Math.ceil((float)a / b);float

相关文章
相关标签/搜索