We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There was an error while loading. Please reload this page.