There was an error while loading. Please reload this page.
Perform ceiling-divison of two numbers.
Similar: floorDiv, ceilDiv, roundDiv.
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