sqrt - nodef/extra-bigint GitHub Wiki

Find the square root of a bigint.

Similar: sqrt, cbrt, root.

function sqrt(x)
// x: a bigint
const xbigint = require('extra-bigint');


xbigint.sqrt(81n);
// → 9n

xbigint.sqrt(99n);
// → 9n

References