I am writing a PHP script that looks at a DB table of float values ββthat tend to be somewhat small, for example:
0.00052 0.00134 0.00103 0.00149 0.00085 0.00068 0.00077 0.00088 0.00169 0.00063
For reasons unknown to me, some values ββappear in the database in scientific notation, for example:
1.12305e-06
The table is set to float, and I tried all kinds of functions in PHP to make the numbers appear as decimal, but to no avail. Try, as I could, I cannot get this table of numbers to be sequentially decimal in all cases.
Any suggestions to fix this? We tried typcasting on (float)
and used number_format()
and several other parameters, but did not change it every time.
source share