every time i use the Math.round(4.45678765e-6 * 10000)/10000 it gives me a 0 value but if i remove the e-6 it gives the correct answer 4.4567 what shoul i do? here\'s my code. t
Not 100% sure what your after but if you want the power;
var f = 4.45678765e-6; var exp = Math.floor(Math.log(Math.abs(f)) / Math.LN10); // -6 var f2 = f * Math.pow(10, -exp); // 4.45678765