This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Converts an exponential (scientific) number notation to a decimal one. | |
* Uses neither GMP nor BCMath modules. | |
* | |
* @param float|int|string $value | |
* @return string | |
*/ | |
function formatExponential($value) { | |
// Both upper-case “E” and lower-case “e” would work. |