<?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: How to Convert string field to Decimal in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333120#M101935</link>
    <description>&lt;P&gt;I don't have , in the string value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just have something like below with decimal point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;24.56&lt;/P&gt;&lt;P&gt;32.45&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;</description>
    <pubDate>Tue, 13 Mar 2018 05:33:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-13T05:33:43Z</dc:date>
    <item>
      <title>How to Convert string field to Decimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333111#M101926</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to do some sum operation on the&amp;nbsp; field called CHG_AMT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am executing below logic,&lt;/P&gt;&lt;P&gt;row1.CHG_CLASS == "OCC" &amp;amp;&amp;amp;&lt;BR /&gt;(row1.CHG_DESC_1 == "Late Payment Charge" ||&lt;BR /&gt;row1.CHG_DESC_1 == "Late Charge on Past Due Balances" ||&lt;BR /&gt;row1.CHG_DESC_1 == "Late Fee" ||&lt;BR /&gt;row1.CHG_DESC_1 == "Finance Charge" ||&lt;BR /&gt;row1.CHG_DESC_1 == "Late Payment Interest" ||&lt;BR /&gt;row1.CHG_DESC_1 == "Late payment charge on unpaid balance") ?&lt;BR /&gt;sum(row1.CHG_AMT) : 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error I am facing is with data type of CHG_AMT in&amp;nbsp; the input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how do I convert this to Decimal and do Sum operation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 10:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333111#M101926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T10:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert string field to Decimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333112#M101927</link>
      <description>&lt;P&gt;Have you tried&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Double.parseDouble(row1.CHG_AMT)&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333112#M101927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T13:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert string field to Decimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333113#M101928</link>
      <description>&lt;P&gt;What is the data type of AMT field coming as input &amp;amp; whats the data type of derived field? Based on that we can advice you conversion..&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 15:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333113#M101928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T15:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert string field to Decimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333114#M101929</link>
      <description>&lt;P&gt;Input field is something like 23.34 which is of string type and need to convert that amount field suppose in the second line item will be 34.23. So I have to sum it up and show as amount field.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 06:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333114#M101929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-01T06:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert string field to Decimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333115#M101930</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Have you already tried to use Double.parseDouble(name_of_your_input_field) or&lt;/P&gt; 
&lt;P&gt;new BigDecimal(name_of_your_input_field).doubleValue()&lt;/P&gt; 
&lt;P&gt;in tMap expression?&lt;/P&gt; 
&lt;P&gt;tAggregateRow component provides the aggregation key and the relevant result of set operations (min, max, sum...).&lt;/P&gt; 
&lt;P&gt;For a description of tAggregateRow, please check the documentation user guide.&lt;/P&gt; 
&lt;P&gt;&lt;A title="TalendHelpCenter:tAggregateRow" href="https://help.talend.com/reader/5F7AOorfJ7HKLZNohYtadg/nPPFzl9KD0UdLhLjgwuKGA" target="_self" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tAggregateRow&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 06:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333115#M101930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-01T06:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert string field to Decimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333116#M101931</link>
      <description>&lt;P&gt;use&amp;nbsp;&lt;SPAN&gt;Double.parseDouble(sum(row1.CHG_AMT))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 11:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333116#M101931</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-02-02T11:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert string field to Decimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333117#M101932</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Is there any update for your issue?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 07:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333117#M101932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-06T07:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert string field to Decimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333118#M101933</link>
      <description>&lt;P&gt;No I have not got the solution yet. Suppose I have an input value like, 111.04 and I am using this in one subtraction from other field which is decimal(20,2) in Mysql and FLOAT(20,2) in Talend.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am getting data type issue, and it is not correctly calculated.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So how I can change the data type of field(which has 111.04) from String to Flo&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/00539000004XsaeAAC"&gt;@xdshi&lt;/A&gt;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Hello,&lt;/P&gt; 
 &lt;P&gt;Is there any update for your issue?&lt;/P&gt; 
 &lt;P&gt;Best regards&lt;/P&gt; 
 &lt;P&gt;Sabrina&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&lt;BR /&gt;at conversion?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Deepak&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 14:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333118#M101933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-12T14:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert string field to Decimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333119#M101934</link>
      <description>&lt;P&gt;first you replace "," with "." using &lt;SPAN&gt;yourString.replaceAll(",", ".")) ,then&amp;nbsp;&lt;/SPAN&gt;you can covert using tConvert or&amp;nbsp;&lt;SPAN&gt;Double.parseDouble() in tmap to convert.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 05:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333119#M101934</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-03-13T05:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert string field to Decimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333120#M101935</link>
      <description>&lt;P&gt;I don't have , in the string value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just have something like below with decimal point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;24.56&lt;/P&gt;&lt;P&gt;32.45&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 05:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333120#M101935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-13T05:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert string field to Decimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333121#M101936</link>
      <description>&lt;P&gt;ok,then you can use&amp;nbsp;&lt;SPAN&gt;tConvertType or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Double.parseDouble() in tmap to convert.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 05:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333121#M101936</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-03-13T05:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert string field to Decimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333122#M101937</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMhtAAG"&gt;@Deepak1&lt;/A&gt;,did it help you?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 14:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333122#M101937</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-04-03T14:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert string field to Decimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333123#M101938</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMhtAAG"&gt;@Deepak1&lt;/A&gt;,still do you have issue with this?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 06:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-string-field-to-Decimal/m-p/2333123#M101938</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-04-19T06:36:31Z</dc:date>
    </item>
  </channel>
</rss>

