This question already has an answer here:
I am trying to convert a scientific notation/exponential number.
For example :
I get from a API request this number : 4.96E-6
I want to convert it to his normal value 0.00000496.
I searched on the web and tryed a few codes like
$awb = "4.96e-6"; // tried with and without quotes
$format = sprintf($awb, "%e");
var_dump($format);
it returns : string(7) "4.96E-6"
$awb = 4.96e-6;
$format = sscanf($awb, "%e");
var_dump($format);
Is returning :
array(1) { [0]=> float(4.96E-6) }
Please what should I do ?
Thank you
</div>