<?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: [resolved] From STRING or INTEGER to float with two decimals in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-From-STRING-or-INTEGER-to-float-with-two-decimals/m-p/2339340#M107494</link>
    <description>Hi&lt;BR /&gt;Sorry for this late feedback, I had to fly away for some days...&lt;BR /&gt;Anyway, thanks a lot for your help.</description>
    <pubDate>Tue, 22 Jul 2014 05:12:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-22T05:12:52Z</dc:date>
    <item>
      <title>[resolved] From STRING or INTEGER to float with two decimals</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-From-STRING-or-INTEGER-to-float-with-two-decimals/m-p/2339338#M107492</link>
      <description>Hello
&lt;BR /&gt;We receive a delimited text file with one of the field that looks like this :"00000073142"
&lt;BR /&gt;This field is an amount of money and should be read like 731.42
&lt;BR /&gt;From this field I have to calculate another one which is 15% of it, here it would be 15% of 731.42 = 109.71
&lt;BR /&gt;When I declare the discount (15%) field as a Float value, whenever 15% of whatever amount is a sum that end with a 0 (for exemple 31,90), it will be outputed as 31,9
&lt;BR /&gt;That's not good because I want to print this field and need it to looks like a price, with two decimals.
&lt;BR /&gt;How can I say inside a tMap component that a float value must have two decimals, no more no less.
&lt;BR /&gt;I have tried the precision at two but it doesn't look like my answer.
&lt;BR /&gt;Here and there, I have found the I could use some java code (decimalformat or math.round) 
&lt;BR /&gt;Problem is I don't know how the call this java code inside tMap. It seems I should create a routine than call it from tMap, but I don't know how to do this.
&lt;BR /&gt;Is the any to do this ? 
&lt;BR /&gt;Thanks a lot</description>
      <pubDate>Sun, 13 Jul 2014 05:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-From-STRING-or-INTEGER-to-float-with-two-decimals/m-p/2339338#M107492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-13T05:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] From STRING or INTEGER to float with two decimals</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-From-STRING-or-INTEGER-to-float-with-two-decimals/m-p/2339339#M107493</link>
      <description>Hi,&lt;BR /&gt;If you have few operations to be called on each row and column, then I would ask you to use tJavaRow before tMap and do processing as required...&lt;BR /&gt;Use Ctrl+Space, this will invoke all the existing functions and you can write your own with the help of Java code.&lt;BR /&gt;Thanks&lt;BR /&gt;vaibhav</description>
      <pubDate>Mon, 14 Jul 2014 09:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-From-STRING-or-INTEGER-to-float-with-two-decimals/m-p/2339339#M107493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-14T09:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] From STRING or INTEGER to float with two decimals</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-From-STRING-or-INTEGER-to-float-with-two-decimals/m-p/2339340#M107494</link>
      <description>Hi&lt;BR /&gt;Sorry for this late feedback, I had to fly away for some days...&lt;BR /&gt;Anyway, thanks a lot for your help.</description>
      <pubDate>Tue, 22 Jul 2014 05:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-From-STRING-or-INTEGER-to-float-with-two-decimals/m-p/2339340#M107494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-22T05:12:52Z</dc:date>
    </item>
  </channel>
</rss>

