There was an error while loading. Please reload this page.
Perform floor-divison of two numbers.
Similar: floorDiv, ceilDiv, roundDiv.
function floorDiv(x, y) // x: divisor // y: dividend
const xmath = require('extra-math'); xmath.floorDiv(15, 4); // → 3 xmath.floorDiv(2, 2); // → 1 xmath.floorDiv(-15, 4); // → -4