<?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 Integer handling using tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Integer-handling-using-tmap/m-p/2306234#M77805</link>
    <description>&lt;P&gt;Hello everyone;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im currently trying to transform some data but I need to use LPAD (I think) and cant find a good way : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My value : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;459,55&lt;/P&gt;&lt;P&gt;45&lt;/P&gt;&lt;P&gt;41&lt;/P&gt;&lt;P&gt;105,32&lt;/P&gt;&lt;P&gt;104,78&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need it transform to 13 characters with 3 digits, and NO ,  or . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it should look like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0000000459550&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0000000045000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0000000041000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0000000105320&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0000000104780&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to multiply by 1000 and then LEFTPAD 0 until thirteen, is it the best way to do so ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im having trouble findind the good type, if i use Float; since there is a ,   it doesnt multiply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i tried : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;row1*1000   but it return value with .0 ( 41 &amp;gt; 41000.0 for example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.multiply cant work (&lt;/P&gt;method multiply(int) is undefined for integer)&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone explain to me which type should i use and how can i manage to LPAD and multiply a decimal value ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 11 Nov 2020 13:27:47 GMT</pubDate>
    <dc:creator>daez</dc:creator>
    <dc:date>2020-11-11T13:27:47Z</dc:date>
    <item>
      <title>Integer handling using tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Integer-handling-using-tmap/m-p/2306234#M77805</link>
      <description>&lt;P&gt;Hello everyone;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im currently trying to transform some data but I need to use LPAD (I think) and cant find a good way : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My value : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;459,55&lt;/P&gt;&lt;P&gt;45&lt;/P&gt;&lt;P&gt;41&lt;/P&gt;&lt;P&gt;105,32&lt;/P&gt;&lt;P&gt;104,78&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need it transform to 13 characters with 3 digits, and NO ,  or . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it should look like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0000000459550&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0000000045000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0000000041000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0000000105320&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0000000104780&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to multiply by 1000 and then LEFTPAD 0 until thirteen, is it the best way to do so ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im having trouble findind the good type, if i use Float; since there is a ,   it doesnt multiply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i tried : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;row1*1000   but it return value with .0 ( 41 &amp;gt; 41000.0 for example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.multiply cant work (&lt;/P&gt;method multiply(int) is undefined for integer)&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone explain to me which type should i use and how can i manage to LPAD and multiply a decimal value ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 13:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Integer-handling-using-tmap/m-p/2306234#M77805</guid>
      <dc:creator>daez</dc:creator>
      <dc:date>2020-11-11T13:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Integer handling using tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Integer-handling-using-tmap/m-p/2306235#M77806</link>
      <description>&lt;P&gt;@Bourgin Benoit​&amp;nbsp;, check the below case will help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://community.talend.com/s/feed/0D73p000004kQzOCAU&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 14:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Integer-handling-using-tmap/m-p/2306235#M77806</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-11-11T14:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Integer handling using tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Integer-handling-using-tmap/m-p/2306236#M77807</link>
      <description>&lt;P&gt;Hello @Manohar B​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help. I see this post but its not helping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can manage to LPAD my string. But i need 3 digits all the time, and for 105,32 it returns 0000000010532 instead of 0000000105320. I tried this : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String.format("%013d", Integer.parseInt(row1.qty))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But since my data is with comma, I think it doesnt work. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;java.lang.NumberFormatException: For input string: "0,035"&lt;/P&gt;&lt;P&gt;at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:68)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/java.lang.Integer.parseInt(Integer.java:652)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.base/java.lang.Integer.parseInt(Integer.java:770)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reminder : data set is like 0,035 or 142,35 , &lt;B&gt;string value.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need my output 13 char long AND 3 digits, no separtor. So LPAD is not enough. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should be 0000000000035   and 0000000142350 for those previous value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 10:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Integer-handling-using-tmap/m-p/2306236#M77807</guid>
      <dc:creator>daez</dc:creator>
      <dc:date>2020-11-16T10:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Integer handling using tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Integer-handling-using-tmap/m-p/2306237#M77808</link>
      <description>&lt;P&gt;Still actively looking for a way to deal with it&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 10:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Integer-handling-using-tmap/m-p/2306237#M77808</guid>
      <dc:creator>daez</dc:creator>
      <dc:date>2020-11-17T10:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Integer handling using tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Integer-handling-using-tmap/m-p/2306238#M77809</link>
      <description>&lt;P&gt;Finally found a way : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String.format("%013d", Math.round(row1.quantity*1000)) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 13:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Integer-handling-using-tmap/m-p/2306238#M77809</guid>
      <dc:creator>daez</dc:creator>
      <dc:date>2020-11-18T13:58:04Z</dc:date>
    </item>
  </channel>
</rss>

