<?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: Losing leading “0” Zeros when converting to integer from string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Losing-leading-0-Zeros-when-converting-to-integer-from-string/m-p/2253363#M36721</link>
    <description>There's no notion of leading zeroes when storing numbers in a numeric format. If you need to preserve zeroes throughout the job, it has to be a String. If this is only an issue when you output the data at the end, you can convert back to a String, padding the value with leading zeroes as needed.</description>
    <pubDate>Fri, 05 May 2017 15:42:30 GMT</pubDate>
    <dc:creator>cterenzi</dc:creator>
    <dc:date>2017-05-05T15:42:30Z</dc:date>
    <item>
      <title>Losing leading “0” Zeros when converting to integer from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Losing-leading-0-Zeros-when-converting-to-integer-from-string/m-p/2253361#M36719</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When I am converting a String to an Integer, I am losing the leading zeros from my variable.&lt;BR /&gt;I tried this 'Integer.parseInt((row1.date.length()==5)?"0"+row1.date:row1.date ) ' but it didin't work&lt;BR /&gt;&lt;BR /&gt;Exemple :&lt;BR /&gt;Input data : '012005'&lt;BR /&gt;In Output data I have : '12005'&lt;/P&gt;&lt;P&gt;Someone can help me please?&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 11:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Losing-leading-0-Zeros-when-converting-to-integer-from-string/m-p/2253361#M36719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-05T11:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Losing leading “0” Zeros when converting to integer from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Losing-leading-0-Zeros-when-converting-to-integer-from-string/m-p/2253362#M36720</link>
      <description>Hi Maria, 
&lt;BR /&gt;As per my understanding, if you convert any value to number it will remove '0' zero in the begin. Because there is no value for '0' zero if it is before some number, if zero '0' present after number then it has some value. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Veeru</description>
      <pubDate>Fri, 05 May 2017 13:18:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Losing-leading-0-Zeros-when-converting-to-integer-from-string/m-p/2253362#M36720</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2017-05-05T13:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Losing leading “0” Zeros when converting to integer from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Losing-leading-0-Zeros-when-converting-to-integer-from-string/m-p/2253363#M36721</link>
      <description>There's no notion of leading zeroes when storing numbers in a numeric format. If you need to preserve zeroes throughout the job, it has to be a String. If this is only an issue when you output the data at the end, you can convert back to a String, padding the value with leading zeroes as needed.</description>
      <pubDate>Fri, 05 May 2017 15:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Losing-leading-0-Zeros-when-converting-to-integer-from-string/m-p/2253363#M36721</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-05-05T15:42:30Z</dc:date>
    </item>
  </channel>
</rss>

