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. the value has the power of 10 something like this 4.45678765x10^-6.
<html>
<script type="text/javascript">
var x = Math.floor (4.45678765 * 10000)/10000;
document.write (x);
</script>
</html>
is it even possible to limit the decimal places if the value has an exponent?