Hi, and welcome to the forum.
dmey wrote:I'm going to once again necro this very old thread …
That thread is not yours. It belongs to
jazzparadigm and you should not post in it unless you are contributing to a solution for them. Open your own topic. I did that for you, since you are new and may not understand how this forum works. It will help you to read our
Survival guide.
dmey wrote:LibreOffice decides that whenever I open a CSV file with these 20-digit ICCID numbers, that it wants to convert them all to scientific notation.
No,
you decided to ask LibreOffice to convert the ICCID identifiers to numbers, and since they would be very large numbers, Calc uses scientific notation. When you tell Calc to open CSV, you are presented with the Text Import dialog. There
you control how the import is done. When you accepted the default of Standard for the field with the ICCID identifiers, you told Calc to interpret them as numbers. But they are identifiers, not numbers. You are not going to sum them or round them or take square roots. Just set the ICCID
Column Type to Text and the import will work as you want. This dialog is explained in detail in the following tutorial.
[Tutorial] Text to Columns
It is common to work with data in Calc which looks like numbers but is actually an identifier or code. Ask yourself: Am I going to perform any mathematics with this "number"? If not, it should be stored as text. A frequent case is address data which includes postal codes, which in the United States are called ZIP codes. They always need to be stored as text. If not, Calc will ignore leading zeros since those do not affect a number's value. But the postal code is not a number and leading zeros cannot be ignored. The ZIP code for the Massachusetts State Capitol is 02108. Putting 2108 in the address is
wrong, even though 02108 = 2108 arithmetically.
dmey wrote:Then when I save the CSV file back to my computer, it has changed all my ICCID's to scientific notation and I'VE LOST ALL OF MY DATA!!!
Numbers in Calc (and other spreadsheets) are limited to 15 significant digits. When you provide a 20-digit number, the exact values of last five digits cannot be saved in the cell though they increase the scientific notation's exponent. Could you not see that the data was imported incorrectly? The display would show something like 1.235E+019, not 12345123451234512345. Your choice to save back to the original file after an incorrect import was what destroyed your data. If you were unsure, you could have used File → Save As to preserve the original file until you could verify that your procedure was correct.
dmey wrote:I would like to have words with whoever is in charge of keeping this asinine behavior stuck in the past.
This is not a developers' forum. We are all users, just like you. You're welcome to rant if it makes you feel better, but nothing you post here is going to affect how OpenOffice or LibreOffice works. Developers will not see this topic. I think if you study the tutorial above it will help prevent misunderstandings and data loss in the future.
If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the subject field. Select the green checkmark icon at the same time.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).