计算最接近给定数且大于或等于它的整数值。
例如,调用 ceil(9.03) 和 ceil(9.97) 都会返回值 10。
示例
语法
ceil(n)
参数
n
数字:
要向上取整的数字。
返回值
整数: 向上取整后的数字。
This page is generated from the comments in src/math/calculation.js . Please feel free to edit it and submit a pull request!