sqrt - nodef/extra-bigint GitHub Wiki
Find the square root of a bigint.
function sqrt(x)
// x: a bigint
const xbigint = require('extra-bigint');
xbigint.sqrt(81n);
// → 9n
xbigint.sqrt(99n);
// → 9n
Find the square root of a bigint.
function sqrt(x)
// x: a bigint
const xbigint = require('extra-bigint');
xbigint.sqrt(81n);
// → 9n
xbigint.sqrt(99n);
// → 9n