0.0.62 ā¢ Published 3 years ago
@extra-bigint/log-2.min v0.0.62
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