roundDiv - nodef/extra-math GitHub Wiki
Perform rounded-divison of two numbers.
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