-
Notifications
You must be signed in to change notification settings - Fork 0
roundDiv
Subhajit Sahu edited this page Aug 8, 2022
·
1 revision
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