Is there a reasonably fast way to extract the exponent and mantissa from a Number in Javascript?
AFAIK there\'s no way to get at the bits behind a Number in Javascri
What about following to get the exponent?:
let exp = String(number.toExponential()); exp = Number(exp.substr(exp.lastIndexOf('e')+1));
1000 will result in exp = 3