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

Find the base-10 logarithm of a bigint.

Similar: log2, log10.


function log10(x)
// x: a bigint

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


xbigint.log10(81n);
// → 1n

xbigint.log10(999n);
// → 2n


References

Clone this wiki locally