README
Gives base-2 logarithm of value.
📦 NPM,
😺 GitHub,
🏃 RunKit,
🌔 Minified,
📜 Files,
📰 JSDoc,
📘 Wiki.
This is part of package extra-bigint.
This is browserified, minified version of @extra-bigint/log-2.
It is exported as global variable bigint_log2.
CDN: unpkg, jsDelivr.
bigint.log2(x);
// x: a bigint
const bigint = require('extra-bigint');
bigint.log2(16n);
// 4n
bigint.log2(15n);
// 3n
bigint.log2(0n);
// null