有这样的mysql查询SELECT CurrencyRate/Units AS FinalCurrencyRate
CurrencyRateis 的值和is的0.06200000值。Units1000
所以0.06200000/1000得到6.2E-5
如果相同的结果echo $result = 0.06200000 / 1000 . '<br>';
如果echo $result = number_format( (0.06200000 / 1000), 10, '.', '' ) . '<br>';那么可以得到0.0000620000
mysql查询获得正常数字而不是什么解决方案6.2E-5?
成立round(CurrencyRate/Units,10)
但是如果不知道00000小数点后的数字怎么办?例如0.06200000/1000000000000000000