Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

es.math.log2.js 256B

12345678910111213
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var log = Math.log;
  4. var LN2 = Math.LN2;
  5. // `Math.log2` method
  6. // https://tc39.es/ecma262/#sec-math.log2
  7. $({ target: 'Math', stat: true }, {
  8. log2: function log2(x) {
  9. return log(x) / LN2;
  10. }
  11. });