We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Find the remainder of x/y with sign of x (truncated division).
Similar: rem, mod, modp.
function rem(x, y) // x: dividend // y: divisor
const xbigint = require('extra-bigint'); xbigint.rem(1n, 10n); // → 1n xbigint.rem(-1n, 10n); // → -1n xbigint.rem(1n, -10n); // → 1n
There was an error while loading. Please reload this page.