We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Find smallest power-of-10 greater than or equal to given bigint.
Similar: nextPow2, nextPow10. Similar: isPow10, prevPow10, nextPow10.
function nextPow10(x) // x: a bigint
const xbigint = require('extra-bigint'); xbigint.nextPow10(10n); // → 10n xbigint.nextPow10(999n); // → 1000n