I have a long integer that I want to be able to print out and write to a csv file. If I just write the string unformatted it prints 1.2345E9 instead of the full exact number. What String.format() should I use so that this prints out every single digit correctly.
This is probably just MS Excel formatting things "badly" for you. Check out this test.csv
file here:
"COLUMN"
12345678901234567890
Opened in MS Excel
So check your CSV content. Probably, you don't have a Java formatting problem there
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With