<?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: rounding correction in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/rounding-correction/m-p/2221985#M15762</link>
    <description>&lt;P&gt;Yes, but my scenario is a little different. I have&amp;nbsp; to sum up 3 decimal values i.e A+B+C and then round upto 2 decimal places. is there a function in tmap to do that like we have ROUND function in redshift db.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this, but it is rounding to nearest integer, but i want upto 2 decimal places.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Math.round(yourValueHere * 100.0)/100.0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Also, i am not very good in writing any routine or java. Can you suggest if we have any function in Tmap?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2020 13:17:23 GMT</pubDate>
    <dc:creator>sushantk19</dc:creator>
    <dc:date>2020-06-17T13:17:23Z</dc:date>
    <item>
      <title>rounding correction</title>
      <link>https://community.qlik.com/t5/Talend-Studio/rounding-correction/m-p/2221983#M15760</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to round data from 4 decimal places to 2 in tmap. which function can i use?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;like if my value is 49.2750 then o/p should be 49.28. Presently i am getting it as 49.27 as my output is decimal 2 places.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:07:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/rounding-correction/m-p/2221983#M15760</guid>
      <dc:creator>sushantk19</dc:creator>
      <dc:date>2024-11-16T02:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: rounding correction</title>
      <link>https://community.qlik.com/t5/Talend-Studio/rounding-correction/m-p/2221984#M15761</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQvwAAG"&gt;@sushantk19&lt;/A&gt;&amp;nbsp;,have you verified the below link?&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCoc7CAC" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Tmap-Float-variable-needs-to-Round/td-p/30301&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 12:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/rounding-correction/m-p/2221984#M15761</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-06-17T12:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: rounding correction</title>
      <link>https://community.qlik.com/t5/Talend-Studio/rounding-correction/m-p/2221985#M15762</link>
      <description>&lt;P&gt;Yes, but my scenario is a little different. I have&amp;nbsp; to sum up 3 decimal values i.e A+B+C and then round upto 2 decimal places. is there a function in tmap to do that like we have ROUND function in redshift db.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this, but it is rounding to nearest integer, but i want upto 2 decimal places.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Math.round(yourValueHere * 100.0)/100.0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Also, i am not very good in writing any routine or java. Can you suggest if we have any function in Tmap?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 13:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/rounding-correction/m-p/2221985#M15762</guid>
      <dc:creator>sushantk19</dc:creator>
      <dc:date>2020-06-17T13:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: rounding correction</title>
      <link>https://community.qlik.com/t5/Talend-Studio/rounding-correction/m-p/2221986#M15763</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQvwAAG"&gt;@sushantk19&lt;/A&gt;&amp;nbsp;,check the below is working for me. and data type of the column is&amp;nbsp;double.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Input:&amp;nbsp;49.2750&lt;/P&gt; 
&lt;P&gt;output:&amp;nbsp;49.28&lt;/P&gt; 
&lt;P&gt;output_row.newColumn = Math.round(input_row.newColumn* 100.0)/100.0;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaOp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140700i328D0107517138C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaOp.png" alt="0683p000009MaOp.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaNx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137656i15692E4F3991F7E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaNx.png" alt="0683p000009MaNx.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 13:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/rounding-correction/m-p/2221986#M15763</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-06-17T13:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: rounding correction</title>
      <link>https://community.qlik.com/t5/Talend-Studio/rounding-correction/m-p/2221987#M15764</link>
      <description>&lt;P&gt;what is the datatype of this field in tjavarow component? it is not allowing me to keep it as float 8,2? should i make it double?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 14:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/rounding-correction/m-p/2221987#M15764</guid>
      <dc:creator>sushantk19</dc:creator>
      <dc:date>2020-06-17T14:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: rounding correction</title>
      <link>https://community.qlik.com/t5/Talend-Studio/rounding-correction/m-p/2221988#M15765</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQvwAAG"&gt;@sushantk19&lt;/A&gt;,its&amp;nbsp;&lt;SPAN&gt;double.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 14:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/rounding-correction/m-p/2221988#M15765</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-06-17T14:29:18Z</dc:date>
    </item>
  </channel>
</rss>

