lolite.ceil
v1.1.16
Published
Round a number up to the nearest whole integer. Non-finite or non-numeric values are coerced to zero.
Readme
ceil(value)
Round a number up to the nearest whole integer. Non-finite or non-numeric values are coerced to zero.
const lolite = require("lolite.ceil")
const positiveResult = ceil(2.1)
// result: 3
const negativeResult = ceil(-2.1)
// result: 2
const coercedResult = ceil("garbage")
// result: 0 (0 ceiled)