<?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 [resolved] Round a number in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Round-a-number/m-p/2294365#M67254</link>
    <description>Hello, 
&lt;BR /&gt;I read in a tMap an Excel cell who can be "null" or contain a number with delimiter (1 111) and can be décimal (1 111,11...111). 
&lt;BR /&gt;The input format is string, the input format is string. 
&lt;BR /&gt;I try getting the number like that : 
&lt;BR /&gt;9 876 543 --&amp;gt; 9876543 (without separator) 
&lt;BR /&gt;or 
&lt;BR /&gt;1 234 567,55 -&amp;gt; 1234568 (without separator and rounded) 
&lt;BR /&gt;Then I test that : 
&lt;BR /&gt;Relational.ISNULL(row11.newColumn8)?"" 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9p6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134116iFBD5D7F21624A744/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9p6.png" alt="0683p000009M9p6.png" /&gt;&lt;/span&gt;tringHandling.CHANGE(row11.newColumn8,"&amp;nbsp;","") 
&lt;BR /&gt;For the separator, it's ok, but I cannot round the number. 
&lt;BR /&gt;Please, help me ... 
&lt;BR /&gt;Thank-you 
&lt;BR /&gt;Quartz92</description>
    <pubDate>Wed, 06 Aug 2014 08:28:28 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2014-08-06T08:28:28Z</dc:date>
    <item>
      <title>[resolved] Round a number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Round-a-number/m-p/2294365#M67254</link>
      <description>Hello, 
&lt;BR /&gt;I read in a tMap an Excel cell who can be "null" or contain a number with delimiter (1 111) and can be décimal (1 111,11...111). 
&lt;BR /&gt;The input format is string, the input format is string. 
&lt;BR /&gt;I try getting the number like that : 
&lt;BR /&gt;9 876 543 --&amp;gt; 9876543 (without separator) 
&lt;BR /&gt;or 
&lt;BR /&gt;1 234 567,55 -&amp;gt; 1234568 (without separator and rounded) 
&lt;BR /&gt;Then I test that : 
&lt;BR /&gt;Relational.ISNULL(row11.newColumn8)?"" 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9p6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134116iFBD5D7F21624A744/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9p6.png" alt="0683p000009M9p6.png" /&gt;&lt;/span&gt;tringHandling.CHANGE(row11.newColumn8,"&amp;nbsp;","") 
&lt;BR /&gt;For the separator, it's ok, but I cannot round the number. 
&lt;BR /&gt;Please, help me ... 
&lt;BR /&gt;Thank-you 
&lt;BR /&gt;Quartz92</description>
      <pubDate>Wed, 06 Aug 2014 08:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Round-a-number/m-p/2294365#M67254</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-08-06T08:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Round a number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Round-a-number/m-p/2294366#M67255</link>
      <description>In order to round the number, first you will have to change the data type to decimal and then apply round function
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Wed, 06 Aug 2014 09:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Round-a-number/m-p/2294366#M67255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-06T09:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Round a number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Round-a-number/m-p/2294367#M67256</link>
      <description>Thank-you sanvaibhav, 
&lt;BR /&gt;The decimal data type to use is "integer" ? 
&lt;BR /&gt;Then I must do : 
&lt;BR /&gt;Relational.ISNULL(row11.newColumn8)?"":ConvertTypes.String2Int(StringHandling.CHANGE(row11.newColumn8,"&amp;nbsp;","")) 
&lt;BR /&gt;to convert before use round ? 
&lt;BR /&gt;I don't find a round function to use in a tMap. 
&lt;BR /&gt;Do you have more instructions to help me ? 
&lt;BR /&gt;Thank-You !!</description>
      <pubDate>Wed, 06 Aug 2014 09:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Round-a-number/m-p/2294367#M67256</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-08-06T09:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Round a number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Round-a-number/m-p/2294368#M67257</link>
      <description>Use java functions inside tMap like below
&lt;BR /&gt;
&lt;A href="http://www.tutorialspoint.com/java/number_round.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.tutorialspoint.com/java/number_round.htm&lt;/A&gt;&amp;nbsp;or
&lt;BR /&gt;
&lt;A href="http://stackoverflow.com/questions/153724/how-to-round-a-number-to-n-decimal-places-in-java" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/153724/how-to-round-a-number-to-n-decimal-places-in-java&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Wed, 06 Aug 2014 09:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Round-a-number/m-p/2294368#M67257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-06T09:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Round a number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Round-a-number/m-p/2294369#M67258</link>
      <description>Thank-you sanvaibhav,&lt;BR /&gt;The two metods you purpose are in Java ... is it possible to do the same thing in a tMap Talend ?</description>
      <pubDate>Wed, 06 Aug 2014 11:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Round-a-number/m-p/2294369#M67258</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-08-06T11:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Round a number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Round-a-number/m-p/2294370#M67259</link>
      <description>You can use Java anywhere possible in Talend...&lt;BR /&gt;Yes, you can use it tMap as well... Use Ctrl+Space you can get inbuild java functions/routines implemented by talend..&lt;BR /&gt;Vaibhav</description>
      <pubDate>Wed, 06 Aug 2014 12:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Round-a-number/m-p/2294370#M67259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-06T12:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Round a number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Round-a-number/m-p/2294371#M67260</link>
      <description>Thank-you sanvaibhav !!</description>
      <pubDate>Wed, 06 Aug 2014 13:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Round-a-number/m-p/2294371#M67260</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-08-06T13:44:51Z</dc:date>
    </item>
  </channel>
</rss>

