We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Get the sign of a bigint.
Similar: abs, sign.
function sign(x) // x: a bigint
const xbigint = require('extra-bigint'); xbigint.sign(-2n); // → -1n xbigint.sign(0n); // → 0n xbigint.sign(5n); // → 1n