• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » tFileOutputDelimited and number format in csv

#1 2012-02-14 18:53:00

l_tamas
New member
Registered: 2012-02-14
Posts: 5

tFileOutputDelimited and number format in csv

Dear All!

I have been struggling with the above component. In case of large numbers they are automatically converted to scientific notation like 6.43E8.

Is there any way to change this behavious?

regards
tamas

Offline

#2 2012-02-15 04:21:44

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: tFileOutputDelimited and number format in csv

Hi Tamas

This is due to CSV itself.
If the cell isn't long enough to show the entire number, it will be changed to scientific notation automatically.
Change(Drag) length of the cell. Then it will show you normal number.

Regards,
Pedro


Only Paranoid Survive.

Offline

#3 2012-02-15 09:43:07

l_tamas
New member
Registered: 2012-02-14
Posts: 5

Re: tFileOutputDelimited and number format in csv

Hi Pedro!

this happens even if you look at the csv itself in a texteditor. So this is not just a parsing issue.

Offline

#4 2012-02-15 09:46:53

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: tFileOutputDelimited and number format in csv

Hi

Uh...Maybe you don't understand what i mean.

Here are two images.
The A1 cell in the first image is shorter than the A1 cell in the second image.

Regards,
Pedro


Uploaded Images


Only Paranoid Survive.

Offline

#5 2012-02-15 09:59:08

janhess
Member
Company: Newcastle University
Registered: 2009-05-19
Posts: 1123

Re: tFileOutputDelimited and number format in csv

Pedro,
He means that the value is in the output file NOT the spreadsheet.

Offline

#6 2012-02-15 11:14:11

l_tamas
New member
Registered: 2012-02-14
Posts: 5

Re: tFileOutputDelimited and number format in csv

Try opening the file in notepad.

Offline

#7 2012-02-15 11:17:53

janhess
Member
Company: Newcastle University
Registered: 2009-05-19
Posts: 1123

Re: tFileOutputDelimited and number format in csv

What have you defined the field as in the output file?

Offline

#8 2012-02-15 12:11:53

l_tamas
New member
Registered: 2012-02-14
Posts: 5

Re: tFileOutputDelimited and number format in csv

thanks for trying to help. the output format is double and this is how it looks in the raw file:
"6.43E8","6.43E8","6.434E8","6.434E8","4.95E8"

Offline

#9 2012-02-15 12:58:17

janhess
Member
Company: Newcastle University
Registered: 2009-05-19
Posts: 1123

Re: tFileOutputDelimited and number format in csv

have you tried BigDecimal?

Offline

#10 2012-02-16 10:45:52

l_tamas
New member
Registered: 2012-02-14
Posts: 5

Re: tFileOutputDelimited and number format in csv

BigDecimal works differently but still not nice to read by humans. it looks like: 560000000.000000000

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » tFileOutputDelimited and number format in csv

Board footer

Powered by FluxBB