<?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: BigDecimal to integer conversion in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218518#M13689</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;hello all,&lt;BR /&gt;i want to convert BigDecimal to integer ,&lt;BR /&gt;I am using Integer.parseInt(row.columnname)&lt;BR /&gt;but its not working........&lt;BR /&gt;please provide solution for this.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 14 Dec 2016 04:12:23 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2016-12-14T04:12:23Z</dc:date>
    <item>
      <title>BigDecimal to integer conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218513#M13684</link>
      <description>Hi, 
&lt;BR /&gt;I'm super new to Talend and am running into a problem while extracting data from an oracle database and loading it into a postgres db. I have a few columns that have use the oracle bigDecimal datatype without a precision. To me that meant that its a just a large integer (double) - the postgres db has the equivalent column using an integer datatype. When I try to directly move data through tMap I get an bigDecimal to integer conversion error. 
&lt;BR /&gt;In Java, I know we would use bigDecimalVar.intValue() to convert the bigDecimal into an integer. How do I implement this in tMap? I tried using the bigDecimalColumn.intValue() in the expression box but I get a Java lang error. 
&lt;BR /&gt;Help! 
&lt;BR /&gt;Thanks!</description>
      <pubDate>Sat, 16 Nov 2024 11:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218513#M13684</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T11:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: BigDecimal to integer conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218514#M13685</link>
      <description>This is the expression I'm trying to use:
&lt;BR /&gt;row1.DS_PRS_ID.intValue()</description>
      <pubDate>Tue, 25 Mar 2014 17:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218514#M13685</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-03-25T17:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: BigDecimal to integer conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218515#M13686</link>
      <description>If you get an Java compilation error this way than at first I would check if I get REAL a BigDecimal as object type.&lt;BR /&gt;Could you provide the error message?</description>
      <pubDate>Tue, 25 Mar 2014 20:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218515#M13686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-25T20:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: BigDecimal to integer conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218516#M13687</link>
      <description>hello all,&lt;BR /&gt;i want to convert BigDecimal to integer ,&lt;BR /&gt;I am using Integer.parseInt(row.columnname)&lt;BR /&gt;but its not working........&lt;BR /&gt;please provide solution for this.</description>
      <pubDate>Fri, 17 Apr 2015 12:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218516#M13687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-17T12:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: BigDecimal to integer conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218517#M13688</link>
      <description>Hi indra,
&lt;BR /&gt;intValue() convert the big decimal to integer
&lt;BR /&gt;row3.test.intValue()
&lt;BR /&gt;Regards,
&lt;BR /&gt;kumar</description>
      <pubDate>Fri, 17 Apr 2015 12:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218517#M13688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-17T12:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: BigDecimal to integer conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218518#M13689</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;hello all,&lt;BR /&gt;i want to convert BigDecimal to integer ,&lt;BR /&gt;I am using Integer.parseInt(row.columnname)&lt;BR /&gt;but its not working........&lt;BR /&gt;please provide solution for this.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 14 Dec 2016 04:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218518#M13689</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-12-14T04:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: BigDecimal to integer conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218519#M13690</link>
      <description>Hi&amp;nbsp;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;prudvi&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;,&lt;BR /&gt;Have you tried to use&lt;BR /&gt;row1.newColumn.intValue() //The type of newColumn is BigDecimal.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 14 Dec 2016 09:47:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218519#M13690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-14T09:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: BigDecimal to integer conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218520#M13691</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This topic is quite old but I will answer it because people (like me) may look for an answer and find this topic.&lt;/P&gt;&lt;P&gt;Here is the solution I found : you can make a routine such as :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static Integer Integer(BigDecimal bd) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return bd.intValue();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can call this routine in Tmap or anywhere you need to convert Bigdecimal to Integer by typing {Routine_Name}.Integer({BigDecimal_Value})&lt;/P&gt;&lt;P&gt;Make sure the BigDecimal number you want to convert is convertible to Integer tho.&lt;/P&gt;&lt;P&gt;I'm quite new on Talend so maybe there is a better solution, but Routine is a very powerful tool that can solve many problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 16:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/BigDecimal-to-integer-conversion/m-p/2218520#M13691</guid>
      <dc:creator>Eva_Hamel</dc:creator>
      <dc:date>2022-02-17T16:48:31Z</dc:date>
    </item>
  </channel>
</rss>

