Gives square root of value.
This is part of package extra-bigint.
This is browserified, minified version of @extra-bigint/sqrt.
It is exported as global variable bigint_sqrt.
CDN: unpkg, jsDelivr.
bigint.sqrt(x);
// x: a bigint
const bigint = require('extra-bigint');
bigint.sqrt(16n, 2n);
// 4n
bigint.sqrt(15n, 2n);
// 3n
bigint.sqrt(-16n, 2n);
// null