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.
I have a long integer that I want to be able to print out
Share
This is probably just MS Excel formatting things “badly” for you. Check out this
test.csvfile here:Opened in MS Excel
So check your CSV content. Probably, you don’t have a Java formatting problem there