@extra-bigint/ceil-div.min

Gives value ≥ x/y. 📦 NPM, 😺 GitHub, 🏃 RunKit, 🌔 Minified, 📜 Files, 📰 JSDoc, 📘 Wiki.

Usage no npm install needed!

<script type="module">
  import extraBigintCeilDivMin from 'https://cdn.skypack.dev/@extra-bigint/ceil-div.min';
</script>

README

Gives value ≥ x/y.
📦 NPM, 😺 GitHub, 🏃 RunKit, 🌔 Minified, 📜 Files, 📰 JSDoc, 📘 Wiki.

Similar: ceilDiv, floorDiv.

This is part of package extra-bigint.

This is browserified, minified version of @extra-bigint/ceil-div.
It is exported as global variable bigint_ceilDiv.
CDN: unpkg, jsDelivr.


bigint.ceilDiv(x, y);
// x: dividend
// y: divisor
const bigint = require('extra-bigint');

bigint.ceilDiv(1n, 10n);
// 1n

bigint.ceilDiv(-1n, 10n);
// 0n

bigint.ceilDiv(1n, -10n);
// 0n

bigint.ceilDiv(-1n, -10n);
// 1n


References