Skip to content
Subhajit Sahu edited this page Aug 9, 2022 · 7 revisions

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

Clone this wiki locally