Files
JiboSDK/node_modules/mumath/order.js
2026-03-22 03:21:45 +02:00

10 lines
200 B
JavaScript

/**
* @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);
};