<?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 int to bigdecimal tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Convert-int-to-bigdecimal-tMap/m-p/2339039#M107220</link>
    <description>tConvertType happily converts BigDecimal to Integer or Long but that won't solve your problem. You need to have the numerator as a non-Integer before the division so use:
&lt;BR /&gt;((Integer)java.util.Calendar.getInstance().get(java.util.Calendar.DATE)).doubleValue() / java.util.Calendar.getInstance().getMaximum(java.util.Calendar.DAY_OF_MONTH)</description>
    <pubDate>Wed, 31 Jul 2013 11:02:42 GMT</pubDate>
    <dc:creator>alevy</dc:creator>
    <dc:date>2013-07-31T11:02:42Z</dc:date>
    <item>
      <title>Convert int to bigdecimal tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-int-to-bigdecimal-tMap/m-p/2339035#M107216</link>
      <description>Hi,
&lt;BR /&gt;Im trying to calculate how large of the percentage of a month that has already gone by. 
&lt;BR /&gt;I've tried to do it like this:
&lt;BR /&gt;java.util.Calendar.getInstance().get(java.util.Calendar.DATE) / java.util.Calendar.getInstance().getMaximum(java.util.Calendar.DAY_OF_MONTH);
&lt;BR /&gt;The calculation seems to work, but it is type integer, so the result is wrong. How can I get it to be a decimal figure?</description>
      <pubDate>Wed, 24 Jul 2013 08:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-int-to-bigdecimal-tMap/m-p/2339035#M107216</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-07-24T08:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Convert int to bigdecimal tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-int-to-bigdecimal-tMap/m-p/2339036#M107217</link>
      <description>Hi, &lt;BR /&gt;Could you convert int-&amp;gt;BigDecimal using &lt;PRE&gt;java.math.BigDecimal()&lt;/PRE&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 30 Jul 2013 05:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-int-to-bigdecimal-tMap/m-p/2339036#M107217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-30T05:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert int to bigdecimal tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-int-to-bigdecimal-tMap/m-p/2339037#M107218</link>
      <description>just use tconverttype for all the conversions its very useful&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;djugal</description>
      <pubDate>Tue, 30 Jul 2013 06:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-int-to-bigdecimal-tMap/m-p/2339037#M107218</guid>
      <dc:creator>djugal</dc:creator>
      <dc:date>2013-07-30T06:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Convert int to bigdecimal tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-int-to-bigdecimal-tMap/m-p/2339038#M107219</link>
      <description>tconverttype is missing a lot of needed conversions. E.g. BigDecimal -&amp;gt; Integer or Long.&lt;BR /&gt;Unfortunately the BigDecimal type will be used much to often even if Integer is quite enough.</description>
      <pubDate>Tue, 30 Jul 2013 11:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-int-to-bigdecimal-tMap/m-p/2339038#M107219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-30T11:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert int to bigdecimal tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-int-to-bigdecimal-tMap/m-p/2339039#M107220</link>
      <description>tConvertType happily converts BigDecimal to Integer or Long but that won't solve your problem. You need to have the numerator as a non-Integer before the division so use:
&lt;BR /&gt;((Integer)java.util.Calendar.getInstance().get(java.util.Calendar.DATE)).doubleValue() / java.util.Calendar.getInstance().getMaximum(java.util.Calendar.DAY_OF_MONTH)</description>
      <pubDate>Wed, 31 Jul 2013 11:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-int-to-bigdecimal-tMap/m-p/2339039#M107220</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-07-31T11:02:42Z</dc:date>
    </item>
  </channel>
</rss>

