Hi All,
I need a suggestion with CSV writer…
The issue is for large number when written in CSV writer, I see Exponent on it.
I tried all the solutions suggested , i.e. Round Double Node, Java Snippet, Disabling Scientific Notifications in CSV Writer but still it keeps coming.
Output has to be in CSV for client. I tried excel as output as well, still the same issue.
Hi @ipazin
I have a column with large double values
When I write this into CSV, I get output like this
Tried Numbers to string,
also tried Round Double node with Plain string option
Also tried Java Snippet with the code - out_BigNumber = String.format("%.0f", in_BigNumber);
Turned off scientific notations in options of CSV writer.
Still the output comes with an exponent.
but you are opening it in Excel. Maybe your Excel automatically detects columns and appropriate format cell for each. Have you tried opening it in text editor? Notepad++ maybe?
Hi @ipazin
Sorry for the late reply.
It works in the notepad. But the expected output is CSV (through excel), hence asked. Is there a setting that need to be done in CSV/Excel ?
I’m pretty sure you just wrote that looking at the file with notepad shows the correct data, and looking at the file in something else (Excel) shows the data in a fashion you don’t want.
This means that the data is written out correctly is the CSV file and it is Excel that is choosing to render the column in exponential form. This is an issue with Excel that you can address by changing the column rendering in Excel after you have read in the CSV.
A CSV file is simply a file of text that separates its values with commas (Comma Separated Values) - it can provide no hints as to the data types of those values (and so it can’t even begin to suggest how a program should render those values.)