<?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: Converting a string to BigDecimal in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Converting-a-string-to-BigDecimal/m-p/2275048#M51537</link>
    <description>&lt;P&gt;If you're trying to get rid of all commas, but retain the '.', you can do something like&lt;/P&gt;
&lt;PRE&gt;row1.Trade_Amount.replaceAll(",","");&lt;/PRE&gt;
&lt;P&gt;you'll also have to reassign the value (i.e. you can't use replace all in-line)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested this code with the BigDecimal constructor and it seemed to work&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 20:36:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-29T20:36:55Z</dc:date>
    <item>
      <title>Converting a string to BigDecimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-a-string-to-BigDecimal/m-p/2275047#M51536</link>
      <description>&lt;P&gt;I am trying to convert a string number from one MySQL table to another.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have used the following on many occasions, however it does not seem to be working in this instance and I am unsure as to why. The string it is converting is "50,000.00"&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-01-29 at 2.05.17 PM.png" style="width: 873px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8w5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145539i9F9F58A22F2DFA4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8w5.png" alt="0683p000009M8w5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;With that formula in tMap it produces the following error:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-01-29 at 2.08.44 PM.png" style="width: 640px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8wA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148772i5DFBD65619A8509E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8wA.png" alt="0683p000009M8wA.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;When I look at the code on 3031:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-01-29 at 2.09.53 PM.png" style="width: 830px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8wF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132138i3A8EB269EC8EDC1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8wF.png" alt="0683p000009M8wF.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;So something is just not functioning as I expect. Any help would be great.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-a-string-to-BigDecimal/m-p/2275047#M51536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a string to BigDecimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-a-string-to-BigDecimal/m-p/2275048#M51537</link>
      <description>&lt;P&gt;If you're trying to get rid of all commas, but retain the '.', you can do something like&lt;/P&gt;
&lt;PRE&gt;row1.Trade_Amount.replaceAll(",","");&lt;/PRE&gt;
&lt;P&gt;you'll also have to reassign the value (i.e. you can't use replace all in-line)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested this code with the BigDecimal constructor and it seemed to work&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 20:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-a-string-to-BigDecimal/m-p/2275048#M51537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T20:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a string to BigDecimal</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-a-string-to-BigDecimal/m-p/2275049#M51538</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have an error in your regex. Use&amp;nbsp;"[^\\d.]"&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 14:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-a-string-to-BigDecimal/m-p/2275049#M51538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-03T14:31:18Z</dc:date>
    </item>
  </channel>
</rss>

