ceil.js 206 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 /** * Round value up with a custom radix. */ function ceil(val, step){ step = Math.abs(step || 1); return Math.ceil(val / step) * step; } module.exports = ceil;