floor.js 197 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 /** * Floor value to full steps. */ function floor(val, step){ step = Math.abs(step || 1); return Math.floor(val / step) * step; } module.exports = floor;