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

Find the cube root of a bigint.

Similar: sqrt, cbrt, root.


function cbrt(x)
// x: a bigint

const xbigint = require('extra-bigint');


xbigint.cbrt(27n);
// → 3n

xbigint.cbrt(99n);
// → 4n


References

Clone this wiki locally