How to convert an exponential value to numeric value using java script
Ex:
1.700000000000001e+308 converted to be its numeric value.
Can anyone please help me to achieve this using jquery/java script?

How to convert an exponential value to numeric value using java script
Ex:
1.700000000000001e+308 converted to be its numeric value.
Can anyone please help me to achieve this using jquery/java script?
1.700000000000001e+308 is too large a number for Javascript to handle.Code:<script type = "text/javascript"> var x = (1.23e+20).toFixed(6); // Returns "123000000000000000000.000000"  note added zeroes alert (x); var y = (1.23e10).toFixed(2); // Returns "0.00" alert (y); </script>
It is not as cold as it was yesterday, but that's probably because it's a bit warmer.  BBC Scotland News.
Last edited by Philip M; 11052012 at 07:23 PM. Reason: typo
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Ummm...actually, the largest number JS can handle is a tad larger than that.
1.7976931348623157 e +308
I *think* what Philip means is that JS can't convert a number that large to NONscientific notation.
If it were converted, it would be 309 digits long. No human could make sense of it, so the scientific notation is much better for this purpose.
I only tested on Chrome, but the largest exponent JS will convert to fixed notation in Chrome is e+20. After that, it reverts to always using scientific notation.
Be yourself. No one else is as qualified.
I'd start by using parseFloat to convert thoose strings to numbers  as that's what parseFloat is for.
If you did that then numbers too big for JavaScript to handle would report as infinity rather than as zero.
Stephen
Learn Modern JavaScript  http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
Don't forget to start your JavaScript code with"use strict";
which makes it easier to find errors in your code.