initial commit
This commit is contained in:
9
node_modules/mumath/order.js
generated
vendored
Normal file
9
node_modules/mumath/order.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* @module mumath/order
|
||||
*/
|
||||
'use strict';
|
||||
module.exports = function (n) {
|
||||
n = Math.abs(n);
|
||||
var order = Math.floor(Math.log(n) / Math.LN10 + 0.000000001);
|
||||
return Math.pow(10,order);
|
||||
};
|
||||
Reference in New Issue
Block a user