9 lines
162 B
JavaScript
9 lines
162 B
JavaScript
// 20.2.2.22 Math.log2(x)
|
|
var $export = require('./_export');
|
|
|
|
$export($export.S, 'Math', {
|
|
log2: function log2(x) {
|
|
return Math.log(x) / Math.LN2;
|
|
}
|
|
});
|