0

I have received a report as an CSV file. It contains the contact names and contact numbers. When i try to open the file in Excel, it displays the contact number like "912224308876". But, if i try to open that file in notepad or try to read in PHP then i get that contact number in different format i.e. "9.12224E+11".

Does any one has idea to solve this issue?

Thanks in advance.

4

1 回答 1

0

问题是 Excel 将长数字视为浮点数并将它们转换为科学计数法,通常是有损的。如下所述,最好的选择是使用 TXT 扩展名而不是 CSV 并使用导入向导(它允许您指定列类型),或者使用公式而不是数字来伪造 Excel。

http://social.msdn.microsoft.com/Forums/en-US/exceldev/thread/64c1ee52-eb53-4202-bb27-d9b08d3bd60a/

于 2013-05-06T08:32:02.033 回答