<?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: Parse Double in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Parse-Double/m-p/2316468#M87010</link>
    <description>&lt;P&gt;Perfect!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please spare a second to mark the topic as resolved as it will help others also.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2019 15:31:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-03T15:31:50Z</dc:date>
    <item>
      <title>Parse Double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-Double/m-p/2316465#M87007</link>
      <description>&lt;P&gt;Im currently doing a job with 2 tFileInputExcel and joining them with TMAP.&lt;/P&gt; 
&lt;P&gt;Im getting stuck in the values parsing&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In my XLS file i got values such as&amp;nbsp;&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.382,35&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30,25&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 61,61&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;When i use tLogRow to see that data&lt;/P&gt; 
&lt;P&gt;2382,349999999999 |&lt;BR /&gt;30,249999999999993 |&lt;BR /&gt;61,60999999999999 |&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;First i need to replace the "," to "." to convert this String to Double&lt;/P&gt; 
&lt;P&gt;When i make that some numbers appears correctly as&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2317.35&lt;/P&gt; 
&lt;P&gt;and others still the same formation&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2382.349999999999&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Then im getting Null Exception and trying to Double.parseDouble(Variable)&lt;/P&gt; 
&lt;P&gt;java.lang.NullPointerException&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need to numbers be with 00.00 (Only 2 decimal places, can be rounded)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There is a way to check with the field "Value" is number to be possible to convert to Double? I think im getting some trash in this process, maybe a alpha that cant be transformed to double.&lt;/P&gt; 
&lt;P&gt;like (if is a number do convert, if not ignore)&lt;/P&gt; 
&lt;P&gt;Can someone help me?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 398px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M66m.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157566iC771AF7CFB94C24C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M66m.png" alt="0683p000009M66m.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 413px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M66w.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129266i3891AC7A9F5F4649/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M66w.png" alt="0683p000009M66w.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 13:22:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-Double/m-p/2316465#M87007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-03T13:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-Double/m-p/2316466#M87008</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;I was able to do the same. Please refer the details below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 978px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M619.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155088iEF58F7578A1A9829/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M619.png" alt="0683p000009M619.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M67G.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146417i814393A95A763DC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M67G.png" alt="0683p000009M67G.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M67L.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132868iFA9F9A207AEB82CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M67L.png" alt="0683p000009M67L.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;row1.data.replaceAll("\\.","").replaceAll(",",".")&lt;/PRE&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-Double/m-p/2316466#M87008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-03T15:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-Double/m-p/2316467#M87009</link>
      <description>Thanks for your repply i will try it, but i found a error in my input XLS, somehow the lines after the content has some invalid data, i cleared all the stuff and works perfectly using my way, but thanks for your repply i will try it too, i think is better</description>
      <pubDate>Wed, 03 Jul 2019 15:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-Double/m-p/2316467#M87009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-03T15:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-Double/m-p/2316468#M87010</link>
      <description>&lt;P&gt;Perfect!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please spare a second to mark the topic as resolved as it will help others also.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-Double/m-p/2316468#M87010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-03T15:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-Double/m-p/2316469#M87011</link>
      <description>&lt;P&gt;I mark this on my tFileInput too, to avoid this stuff later&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 259px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5nh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146817iAD7B3E8C2B809876/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5nh.png" alt="0683p000009M5nh.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-Double/m-p/2316469#M87011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-03T15:33:54Z</dc:date>
    </item>
  </channel>
</rss>

