8 lines
160 B
JavaScript
8 lines
160 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;
|
||
|
}
|
||
|
});
|