Files

10 lines
200 B
JavaScript
Raw Permalink Normal View History

2026-03-22 03:21:45 +02:00
/**
* @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);
};