I am having to write a conversion table as a project. However some of the numbers they give us are 4.014e+9 and 3.861e-7, along with some others that include e+ and e-. If I am wanting to multiply this by the number entered, does PHP recognize the constant E?
$result = "RESULT:" . $num * 4.014e+9;
and
$result = "RESULT:" . $num * 3.861e-7;
Or do I need to so something else for it to recognize it?
The
eis not a constant; it’s part of the scientific notation float literal.