我想先说:Convert exponential number presented as string to a decimal问题与我的无关。
我正在尝试批量上传(csv文件数据)。这里有一些手机号码有科学记数法。
我可以在csv文件中将其转换为文本格式。但对于1000个数据来说,这是非常可悲的。我尝试读取数据:
$formatted = number_format($mobileNoFromCsvFile, 0, '.', '');
echo $mobileNoFromCsvFile; print 8.80168E+12 but `echo $formatted;` print print 8801680000000 which mean $mobileNoFromCsvFile contains 8.80168x10^-12. all digits after 880168 are truncated. Anyone have such experience to solve this issue.
谢谢