I have to convert the float to exponential..
0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000021
Using
parseFloat(result)
Gives 2.1e-87
But
10000000
Gives 10000000
(same) but I like to get 100.0e+3
etc..So I used parseFloat(result).toExponential(3);
But the problem here is it is truncating everything ev even if it has more values for example 111222333
it makes it as 111.22+3
so while I reconverting as integer I am cannot get the original value..
Is there any javascript function to achieve this or how can I achieve this..
Thanks in advance..