hello folks,
I have few values in a log which are in scientific notation.
I am trying to convert into actual decimal format or integer but couldn't able to convert.
Values in scientific notation:
1.1662986666666665E-4
2.0946799999999998E-4
3.0741333333333333E-6
5.599999999999999E-7
6.714906666666667E-4
7.549333333333333E-7
1.728E-6
5.319999999999999E-7
1.4967999999999998E-6
4.806666666666667E-7
1.26152E-5
I tried using sprintf to change the format for the above values but could'nt ge t the desired output.
$scientific_notation = "1.728E-6";
$decimal_notation = sprintf("%.10g", $scientific_notation);
Could anyone please help me out here ...
Thanks in advance ...
Regards,
John