-
Notifications
You must be signed in to change notification settings - Fork 2
floorDiv
Subhajit Sahu edited this page Aug 9, 2022
·
4 revisions
Perform floor-divison of two bigints (\).
function floorDiv(x, y)
// x: dividend
// y: divisor
const xbigint = require('extra-bigint');
xbigint.floorDiv(15n, 4n);
// → 3n
xbigint.floorDiv(2n, 2n);
// → 1n
xbigint.floorDiv(-15n, 4n);
// → -4n