<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [resolved] Output format for double values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Output-format-for-double-values/m-p/2321132#M91200</link>
    <description>Hi&lt;BR /&gt;input_row.TDCash, input_row.SDCash and input_row.Adjust should be double/Double data type.&lt;BR /&gt;The output columns should be String.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
    <pubDate>Wed, 14 Mar 2012 02:05:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-03-14T02:05:54Z</dc:date>
    <item>
      <title>[resolved] Output format for double values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Output-format-for-double-values/m-p/2321128#M91196</link>
      <description>Hi, all 
&lt;BR /&gt;I need to obtain a double value which has no exponent in an csv file. The file is from a tfileOutputdelimited. In my files I got these things : 1.0137901051E8 and I need 101379010.51. 
&lt;BR /&gt;I've checked previous posts for samiliar question and found one link as below: 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCpoRCAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Suppress-Exponent-in-a-double-format/td-p/104584&lt;/A&gt; 
&lt;BR /&gt;However I'm not totally understand how to apply above solution, can we manually change the codes? 
&lt;BR /&gt;Thanks!</description>
      <pubDate>Sat, 16 Nov 2024 12:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Output-format-for-double-values/m-p/2321128#M91196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Output format for double values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Output-format-for-double-values/m-p/2321129#M91197</link>
      <description>Hi&lt;BR /&gt;You can type these codes in tJava or tJavaRow.&lt;BR /&gt;&lt;PRE&gt;double d = 1.0137901051E8;&lt;BR /&gt;java.text.DecimalFormat df = new java.text.DecimalFormat("#.##");&lt;BR /&gt;String s=df.format(d);&lt;BR /&gt;System.out.println("d   =   " + s);&lt;/PRE&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 13 Mar 2012 08:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Output-format-for-double-values/m-p/2321129#M91197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-13T08:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Output format for double values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Output-format-for-double-values/m-p/2321130#M91198</link>
      <description>Hi, I append below codes into a tJavaRow component: 
&lt;BR /&gt;java.text.DecimalFormat df = new java.text.DecimalFormat("#.##"); 
&lt;BR /&gt;output_row.TDCash = df.format(input_row.TDCash); 
&lt;BR /&gt;output_row.SDCash = df.format(input_row.SDCash); 
&lt;BR /&gt;output_row.Adjust = df.format(input_row.Adjust); 
&lt;BR /&gt;However when running, I got below errors: 
&lt;BR /&gt;Exception in component tJavaRow_1 
&lt;BR /&gt;java.lang.IllegalArgumentException: Cannot format given Object as a Number 
&lt;BR /&gt; at java.text.DecimalFormat.format(Unknown Source) 
&lt;BR /&gt; at java.text.Format.format(Unknown Source) 
&lt;BR /&gt; at talenddemosjava.poms_cash_adjust_0_1.POMS_Cash_Adjust.tFileInputDelimited_1Process(POMS_Cash_Adjust.java:2392) 
&lt;BR /&gt; at talenddemosjava.poms_cash_adjust_0_1.POMS_Cash_Adjust.runJobInTOS(POMS_Cash_Adjust.java:3917) 
&lt;BR /&gt; at talenddemosjava.poms_cash_adjust_0_1.POMS_Cash_Adjust.main(POMS_Cash_Adjust.java:3785) 
&lt;BR /&gt;It seems java met a type mismatch error. Can u help to have a look?</description>
      <pubDate>Tue, 13 Mar 2012 10:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Output-format-for-double-values/m-p/2321130#M91198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-13T10:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Output format for double values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Output-format-for-double-values/m-p/2321131#M91199</link>
      <description>Or I'm not sure how to use tJava or tJavaRow component, can anybody give an example?</description>
      <pubDate>Wed, 14 Mar 2012 01:36:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Output-format-for-double-values/m-p/2321131#M91199</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-14T01:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Output format for double values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Output-format-for-double-values/m-p/2321132#M91200</link>
      <description>Hi&lt;BR /&gt;input_row.TDCash, input_row.SDCash and input_row.Adjust should be double/Double data type.&lt;BR /&gt;The output columns should be String.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Wed, 14 Mar 2012 02:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Output-format-for-double-values/m-p/2321132#M91200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-14T02:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Output format for double values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Output-format-for-double-values/m-p/2321133#M91201</link>
      <description>I found the problem. It's also a NULL pointer problem. After I made changes as below, the problem is resolved:&lt;BR /&gt;if (input_row.Adjust != null)&lt;BR /&gt;{output_row.Adjust = df.format(input_row.Adjust);}&lt;BR /&gt;Thanks!</description>
      <pubDate>Wed, 14 Mar 2012 02:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Output-format-for-double-values/m-p/2321133#M91201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-14T02:09:56Z</dc:date>
    </item>
  </channel>
</rss>

