_.ceil(向上舍入)
Last updated
Was this helpful?
Last updated
Was this helpful?
语法:
源代码链接:
npm包链接:
描述:
根据precision
(精度) 向上舍入number
。
precision
(精度)可以理解为保留几位小数。
开始版本:3.10.0
参数:
number (number)
: 要向上舍入的值。
[precision=0] (number)
: 向上舍入的的精度。
返回值:
(number)
: 返回向上舍入的值。
例子: