Java export csv numerical distortion problem [notes]

java export csv value distortion

background

In the project, some long integer values ​​are exported to csv, and wps and Office are opened and found to be converted to the format by default xxxE+xx(example: 2.20120148406718E+24)

solution

Convert numeric cells to text cells

The fix is ​​also very simple, when the code fills in the numeric value, prepend\t

Guess you like

Origin blog.csdn.net/qq_41070393/article/details/123867940