<?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: Double to String Parse not working properly in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Double-to-String-Parse-not-working-properly/m-p/2208062#M7445</link>
    <description>&lt;P&gt;This is working properly as this is standard Java behaviour. tConvertType will get you the same results. You can use the String.format method instead of String.valueOf.&lt;/P&gt;
&lt;PRE&gt;String.format(row1.PI, "%.0f")&lt;/PRE&gt;
&lt;P&gt;will get you an "integer" and&lt;/P&gt;
&lt;PRE&gt;String.format(row1.PI, "%.2f")&lt;/PRE&gt;
&lt;P&gt;will get you a number with two decimal places.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2019 07:24:35 GMT</pubDate>
    <dc:creator>JR1</dc:creator>
    <dc:date>2019-08-22T07:24:35Z</dc:date>
    <item>
      <title>Double to String Parse not working properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Double-to-String-Parse-not-working-properly/m-p/2208060#M7443</link>
      <description>&lt;P&gt;Hi I am Trying to&amp;nbsp; Convert double type data to string value. When I am converting it I am getting exponential values instead of proper conversion&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Conversion syntax:&amp;nbsp;String.valueOf(row1.PI)&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Input Schema setup&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Conversion_1.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6v0.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153875i95953F28426A9283/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6v0.jpg" alt="0683p000009M6v0.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Output:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Conversion_output.JPG" style="width: 540px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6Tt.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153213i60AF736C5E0170D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6Tt.jpg" alt="0683p000009M6Tt.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;JOB view:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Conversion_Job_view.JPG" style="width: 859px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M77P.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136345iACF1B6853E32A9AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M77P.jpg" alt="0683p000009M77P.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Tmap:&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Conversion_tmap.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M77U.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157950i5F87CBB2F58CABB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M77U.jpg" alt="0683p000009M77U.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 20:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Double-to-String-Parse-not-working-properly/m-p/2208060#M7443</guid>
      <dc:creator>Tasfiahm</dc:creator>
      <dc:date>2019-08-21T20:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Double to String Parse not working properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Double-to-String-Parse-not-working-properly/m-p/2208061#M7444</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLAPAA4"&gt;@Tasfiahm&lt;/A&gt;&amp;nbsp;,can try to use tConverttype component and see are you getting the same way?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;to know more about tConvertype.&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/NNO~fmVQU4rlkF9Depfdxw/w2XbvHmfgPaJT9EWmkis7w" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/NNO~fmVQU4rlkF9Depfdxw/w2XbvHmfgPaJT9EWmkis7w&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 06:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Double-to-String-Parse-not-working-properly/m-p/2208061#M7444</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-08-22T06:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Double to String Parse not working properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Double-to-String-Parse-not-working-properly/m-p/2208062#M7445</link>
      <description>&lt;P&gt;This is working properly as this is standard Java behaviour. tConvertType will get you the same results. You can use the String.format method instead of String.valueOf.&lt;/P&gt;
&lt;PRE&gt;String.format(row1.PI, "%.0f")&lt;/PRE&gt;
&lt;P&gt;will get you an "integer" and&lt;/P&gt;
&lt;PRE&gt;String.format(row1.PI, "%.2f")&lt;/PRE&gt;
&lt;P&gt;will get you a number with two decimal places.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 07:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Double-to-String-Parse-not-working-properly/m-p/2208062#M7445</guid>
      <dc:creator>JR1</dc:creator>
      <dc:date>2019-08-22T07:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Double to String Parse not working properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Double-to-String-Parse-not-working-properly/m-p/2208063#M7446</link>
      <description>Thanks for the advice. Earlier I have tried tConvertype but it was also giving me exponential values.</description>
      <pubDate>Thu, 22 Aug 2019 14:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Double-to-String-Parse-not-working-properly/m-p/2208063#M7446</guid>
      <dc:creator>Tasfiahm</dc:creator>
      <dc:date>2019-08-22T14:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Double to String Parse not working properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Double-to-String-Parse-not-working-properly/m-p/2208064#M7447</link>
      <description>&lt;P&gt;I have used the&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;String.format(row1.PI, "%.0f")&lt;/PRE&gt; 
&lt;P&gt;source data type: double&lt;/P&gt; 
&lt;P&gt;Target data type: String&lt;/P&gt; 
&lt;P&gt;my expression:&amp;nbsp;Relational.ISNULL(row1.PI)? "" :&lt;BR /&gt;String.format(row1.PI, "%.0f")&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;expression but I am getting the below error message:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#FF0000"&gt;execution failed : Job compile errors &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;At least job "t343423423R" has a compile errors, please fix and export again.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Error Line: 8822&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Detail Message: The method format(String, Object...) in the type String is not applicable for the arguments (double, String)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 15:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Double-to-String-Parse-not-working-properly/m-p/2208064#M7447</guid>
      <dc:creator>Tasfiahm</dc:creator>
      <dc:date>2019-08-22T15:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Double to String Parse not working properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Double-to-String-Parse-not-working-properly/m-p/2208065#M7448</link>
      <description>&lt;P&gt;Hi Jr,&lt;/P&gt;&lt;P&gt;I am not sure why your code&lt;/P&gt;&lt;PRE&gt;String.format(row1.PI, "%.0f")&lt;/PRE&gt;&lt;P&gt;in not working&amp;nbsp; but I just find the solution by changing the formation of the code.&lt;/P&gt;&lt;P&gt;New working code:&lt;/P&gt;&lt;P&gt;String.format ("%.0f", row1.PI).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for showing the path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 16:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Double-to-String-Parse-not-working-properly/m-p/2208065#M7448</guid>
      <dc:creator>Tasfiahm</dc:creator>
      <dc:date>2019-08-22T16:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Double to String Parse not working properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Double-to-String-Parse-not-working-properly/m-p/2208066#M7449</link>
      <description>&lt;P&gt;Yes, sorry. It was the other way around.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 18:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Double-to-String-Parse-not-working-properly/m-p/2208066#M7449</guid>
      <dc:creator>JR1</dc:creator>
      <dc:date>2019-08-22T18:27:43Z</dc:date>
    </item>
  </channel>
</rss>

