<?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: Convert from double to integer in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Convert-from-double-to-integer/m-p/2243251#M29807</link>
    <description>Hi,&lt;BR /&gt;I think you can use this :&lt;BR /&gt;Double.parseDouble(row1.id).intValue()&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Lie</description>
    <pubDate>Mon, 28 Jun 2010 16:04:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-06-28T16:04:37Z</dc:date>
    <item>
      <title>Convert from double to integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-from-double-to-integer/m-p/2243250#M29806</link>
      <description>my source is a flat file ,data has value which may or maynot be a decimal (eg.12345.89 or 3456),we want only the integer part of it and not the decimal part of it(eg 12345 and not 12345.89)
&lt;BR /&gt;I am creating a variable ,
&lt;BR /&gt;StringHandling.INDEX(row1.id,".") == -1 ? StringHandling.LEN(row1.id) : StringHandling.INDEX(row1.id,".") 
&lt;BR /&gt;and another variable ,
&lt;BR /&gt;Integer.parseInt(StringHandling.LEFT(row1.id,Var.index))
&lt;BR /&gt;It is working fine and i am getting the required output,but i still want to know if there is any other better way for resolving this requirement
&lt;BR /&gt;Thanks in advance,
&lt;BR /&gt;Amk</description>
      <pubDate>Sat, 16 Nov 2024 13:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-from-double-to-integer/m-p/2243250#M29806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert from double to integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-from-double-to-integer/m-p/2243251#M29807</link>
      <description>Hi,&lt;BR /&gt;I think you can use this :&lt;BR /&gt;Double.parseDouble(row1.id).intValue()&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Lie</description>
      <pubDate>Mon, 28 Jun 2010 16:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-from-double-to-integer/m-p/2243251#M29807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-28T16:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert from double to integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-from-double-to-integer/m-p/2243252#M29808</link>
      <description>Thank you Lie,I will try and get back to you...&lt;BR /&gt;Regards,&lt;BR /&gt;Amk</description>
      <pubDate>Mon, 28 Jun 2010 16:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-from-double-to-integer/m-p/2243252#M29808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-28T16:06:48Z</dc:date>
    </item>
  </channel>
</rss>

