<?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 create a float by dividing two 'int's? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-float-by-dividing-two-int-s/m-p/2324445#M94145</link>
    <description>Use (float) to convert your integer number division to float in tMap. say (float)(A/B). You already have your output column as float. So it should work.
&lt;BR /&gt;Vaibhav</description>
    <pubDate>Fri, 18 Apr 2014 06:23:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-18T06:23:35Z</dc:date>
    <item>
      <title>How to create a float by dividing two 'int's?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-float-by-dividing-two-int-s/m-p/2324444#M94144</link>
      <description>Hi, 
&lt;BR /&gt;I'd like to generate a calculated metric in my Talend job, namely a percent 
&lt;BR /&gt;At this point I have tried dividing two integer columns A / B in a tMap with the data type set to Float 
&lt;BR /&gt;I'm not getting decimal values through to my MySQL table; they're showing up as integers 
&lt;BR /&gt;My MySQL column is set to decimal data type length of '5,2' 
&lt;BR /&gt;I don't have a length specified in my Talend schema as I didn't know how to express it 
&lt;BR /&gt;Could use some help in getting my percentage working 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 17 Apr 2014 23:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-float-by-dividing-two-int-s/m-p/2324444#M94144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-17T23:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a float by dividing two 'int's?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-float-by-dividing-two-int-s/m-p/2324445#M94145</link>
      <description>Use (float) to convert your integer number division to float in tMap. say (float)(A/B). You already have your output column as float. So it should work.
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Fri, 18 Apr 2014 06:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-float-by-dividing-two-int-s/m-p/2324445#M94145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-18T06:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a float by dividing two 'int's?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-float-by-dividing-two-int-s/m-p/2324446#M94146</link>
      <description>Hi, and thanks 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I ended up just using the (float) on the first int, since that also works: 
&lt;BR /&gt;(float)row.col1/row.col2</description>
      <pubDate>Tue, 22 Apr 2014 18:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-float-by-dividing-two-int-s/m-p/2324446#M94146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-22T18:36:19Z</dc:date>
    </item>
  </channel>
</rss>

