We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Perform rounded-divison of two numbers.
Similar: floorDiv, ceilDiv, roundDiv.
function roundDiv(x, y) // x: divisor // y: dividend
const xmath = require('extra-math'); xmath.roundDiv(15, 4); // → 4 xmath.roundDiv(2, 2); // → 1 xmath.roundDiv(-15, 4); // → -4