<?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: How to ignore everything after decimal dot? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-ignore-everything-after-decimal-dot/m-p/2339403#M107545</link>
    <description>&lt;P&gt;How?&lt;/P&gt;&lt;P&gt;When I try Double.parseDouble(row1.data).intValue()&amp;nbsp; I get an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Detail Message: The method parseDouble(String) in the type Double is not applicable for the arguments (Double)&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2019 16:47:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-28T16:47:18Z</dc:date>
    <item>
      <title>How to ignore everything after decimal dot?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-ignore-everything-after-decimal-dot/m-p/2339401#M107543</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get csvs and one column has an average in a strange format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;e.g.&amp;nbsp; 12223.8 or 23422.99999999999&lt;/P&gt;
&lt;P&gt;I would like to store 12223 or 23422 instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I remove the dot and everything after?&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 16:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-ignore-everything-after-decimal-dot/m-p/2339401#M107543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-28T16:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore everything after decimal dot?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-ignore-everything-after-decimal-dot/m-p/2339402#M107544</link>
      <description>&lt;P&gt;Convert from float or doubleto int. Should be enough.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 16:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-ignore-everything-after-decimal-dot/m-p/2339402#M107544</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-05-28T16:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore everything after decimal dot?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-ignore-everything-after-decimal-dot/m-p/2339403#M107545</link>
      <description>&lt;P&gt;How?&lt;/P&gt;&lt;P&gt;When I try Double.parseDouble(row1.data).intValue()&amp;nbsp; I get an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Detail Message: The method parseDouble(String) in the type Double is not applicable for the arguments (Double)&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 16:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-ignore-everything-after-decimal-dot/m-p/2339403#M107545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-28T16:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore everything after decimal dot?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-ignore-everything-after-decimal-dot/m-p/2339404#M107546</link>
      <description>&lt;P&gt;Hey even I do get in the same format I work in Customer Support Industry for this you just add this&lt;/P&gt;&lt;P&gt;&lt;U&gt;row3.Handle_Time_Total_Seconds.intValue()&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;.intValue()&lt;/U&gt; will stop the values after the decimal point&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 18:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-ignore-everything-after-decimal-dot/m-p/2339404#M107546</guid>
      <dc:creator>TharunJoshi</dc:creator>
      <dc:date>2019-05-28T18:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore everything after decimal dot?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-ignore-everything-after-decimal-dot/m-p/2339405#M107547</link>
      <description>If row1.data is a string, then try the following expression:
&lt;BR /&gt;row1.data.replaceAll("\..*$", "")</description>
      <pubDate>Tue, 28 May 2019 22:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-ignore-everything-after-decimal-dot/m-p/2339405#M107547</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-05-28T22:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore everything after decimal dot?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-ignore-everything-after-decimal-dot/m-p/2339406#M107548</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;below code will give you an idea how to remove all character after dot from a decimal value.&lt;/P&gt;
&lt;PRE&gt;Double a = 23422.99999999999;
System.out.println(a.intValue());

String b = "23422.99999999999";
System.out.println((int)Double.parseDouble(b));&lt;/PRE&gt;
&lt;P&gt;You can write the above code in tjava component and run it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please give Kudos and mark topics as solved where appropriate.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 11:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-ignore-everything-after-decimal-dot/m-p/2339406#M107548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-29T11:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore everything after decimal dot?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-ignore-everything-after-decimal-dot/m-p/2339407#M107549</link>
      <description>&lt;P&gt;I'm new to Talend, but my next project involves a lot of csv imports and I think Talend would be the right tool for it, just need to understand it better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I kinda a bit feel stupid, because nothing seems to work.&lt;/P&gt;&lt;P&gt;Is there something I could do wrong with the csv?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tMap always throws an error, even when I say the data in the csv is double and I just want to save it in my DB as double without any cast.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both (input / output) double "can't cast from int to double"&lt;/P&gt;&lt;P&gt;csv double - target int - using your tips "can't cast from string to int"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 12:41:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-ignore-everything-after-decimal-dot/m-p/2339407#M107549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-29T12:41:17Z</dc:date>
    </item>
  </channel>
</rss>

