log10 - nodef/extra-bigint GitHub Wiki
Find the base-10 logarithm of a bigint.
function log10(x)
// x: a bigint
const xbigint = require('extra-bigint');
xbigint.log10(81n);
// → 1n
xbigint.log10(999n);
// → 2n
Find the base-10 logarithm of a bigint.
function log10(x)
// x: a bigint
const xbigint = require('extra-bigint');
xbigint.log10(81n);
// → 1n
xbigint.log10(999n);
// → 2n