标签: php excel phpspreadsheet
[A1] = 2519121152247150000000
$data = $worksheet->getCellByColumnAndRow(1, 1)->getValue()
返回$data = 2.51912115225E+21
$data = 2.51912115225E+21
但它必须是$data = 2.51912115224715E+21
$data = 2.51912115224715E+21
答案 0 :(得分:0)
感谢@MarkBaker
然后在php.ini中检查你的精度设置....我怀疑它设置为12,如果你把它改为14那么你将得到所有这些数字显示....
DEMO from @MarkBaker