-
Notifications
You must be signed in to change notification settings - Fork 0
ceilDiv
Subhajit Sahu edited this page Aug 8, 2022
·
1 revision
Perform ceiling-divison of two numbers.
function ceilDiv(x, y)
// x: divisor
// y: dividend
const xmath = require('extra-math');
xmath.ceilDiv(15, 4);
// → 4
xmath.ceilDiv(2, 2);
// → 1
xmath.ceilDiv(-15, 4);
// → -3