log10 - nodef/extra-bigint GitHub Wiki

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