<?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: convert decimal (comma to dot) postgres in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351445#M118095</link>
    <description>in tfileinputdelimited you can set in advanced option custom decimal separaton, so custom coding not needed&lt;BR /&gt;bye</description>
    <pubDate>Fri, 07 Aug 2009 15:17:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-08-07T15:17:32Z</dc:date>
    <item>
      <title>convert decimal (comma to dot) postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351438#M118088</link>
      <description>Hi guys 
&lt;BR /&gt;It's me ... again !!! 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Here is an example of my file 
&lt;BR /&gt;_________________________ 
&lt;BR /&gt;15;2013;25/02/1998;3;999;1; 
&lt;B&gt;1003,49&lt;/B&gt; 
&lt;BR /&gt;15;2105;25/02/1998;3;999;1; 
&lt;B&gt;1003,49&lt;/B&gt; 
&lt;BR /&gt;... 
&lt;BR /&gt;Well I want to convert decimal text column to floating point Postgres Column. 
&lt;BR /&gt;when i try to do that i've got an cute error message 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;_________________________________________________________________ 
&lt;BR /&gt;tarting job job_2 at 18:17 04/07/2007. 
&lt;BR /&gt; connecting to socket on port 3334 
&lt;BR /&gt; connected 
&lt;BR /&gt;Exception in component tFileInputDelimited_1 
&lt;BR /&gt;java.lang.NumberFormatException: For input string: " 
&lt;B&gt;&lt;FONT color="red"&gt;1003,49&lt;/FONT&gt;&lt;/B&gt;" 
&lt;BR /&gt; at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source) 
&lt;BR /&gt; at java.lang.Float.parseFloat(Unknown Source) 
&lt;BR /&gt; at routines.system.ParserUtils.parseTo_float(ParserUtils.java:50) 
&lt;BR /&gt; at projet_1.job_2.job_2.tFileInputDelimited_1Process(job_2.java:296) 
&lt;BR /&gt; at projet_1.job_2.job_2.main(job_2.java:536) 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;Job job_2 ended at 18:18 04/07/2007. 
&lt;BR /&gt;My question ... 
&lt;BR /&gt; 
&lt;B&gt;&lt;FONT color="blue"&gt;Is there an numeric pattern or an other trick to convert my column ?&lt;/FONT&gt;&lt;/B&gt; 
&lt;BR /&gt;like that 
&lt;B&gt;1003&lt;FONT color="red"&gt;,&lt;/FONT&gt;49&lt;/B&gt; to 
&lt;B&gt;1003&lt;FONT color="red"&gt;.&lt;/FONT&gt;49&lt;/B&gt; 
&lt;BR /&gt;THX 
&lt;BR /&gt;Regards ... 
&lt;BR /&gt;Didier 
&lt;BR /&gt;_____________________ 
&lt;BR /&gt; 
&lt;B&gt;&lt;FONT color="blue"&gt;Under Windows XP&lt;BR /&gt;TOS:v2.1.0.M1_r3483&lt;BR /&gt;Oracle 10g&lt;BR /&gt;Postgres 8.2.3&lt;BR /&gt;jre 1.6&lt;/FONT&gt;&lt;/B&gt; 
&lt;BR /&gt;_________________________________________________________________</description>
      <pubDate>Sat, 16 Nov 2024 14:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351438#M118088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: convert decimal (comma to dot) postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351439#M118089</link>
      <description>Hello&lt;BR /&gt;Problem is that , is not the decimal separator in Java.&lt;BR /&gt;You have to read your fields as a String. &lt;BR /&gt;Then you can parse it and convert it as a Float in a tMap : new Float(row.fieldName.replace(',', '.'))&lt;BR /&gt;Regards,</description>
      <pubDate>Thu, 05 Jul 2007 00:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351439#M118089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-05T00:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: convert decimal (comma to dot) postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351440#M118090</link>
      <description>hi 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;oki I try and i keep you informed 
&lt;BR /&gt;i saw the hour of your answer ... lol go to sleep !!! 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;thx a lot 
&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 05 Jul 2007 09:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351440#M118090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-05T09:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: convert decimal (comma to dot) postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351441#M118091</link>
      <description>Hi ... 
&lt;BR /&gt;it work ! 
&lt;BR /&gt;Thaaaaaaaanks 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Have fun 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Regards !</description>
      <pubDate>Fri, 06 Jul 2007 15:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351441#M118091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-06T15:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: convert decimal (comma to dot) postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351442#M118092</link>
      <description>Hello Didier,
&lt;BR /&gt;I'm facing the same trouble as you did : wanna change decimal separator ',' by '.' from string to float.
&lt;BR /&gt;I've tried to use a tMap Component with this piece of code :new 
&lt;BR /&gt;Float(row.fieldName.replace(',', '.'))
&lt;BR /&gt;It fails... Where should I write this expression ?
&lt;BR /&gt;I'm new to Talend so it would be very kind to help me.</description>
      <pubDate>Thu, 27 Dec 2007 17:35:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351442#M118092</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2007-12-27T17:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: convert decimal (comma to dot) postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351443#M118093</link>
      <description>Hi matthieu 
&lt;BR /&gt;See 1846.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 28 Dec 2007 07:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351443#M118093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-12-28T07:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: convert decimal (comma to dot) postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351444#M118094</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hello&lt;BR /&gt;Problem is that , is not the decimal separator in Java.&lt;BR /&gt;You have to read your fields as a String. &lt;BR /&gt;Then you can parse it and convert it as a Float in a tMap : new Float(row.fieldName.replace(',', '.'))&lt;BR /&gt;Regards,&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;This my problem Thank you very muchhhh... 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;))</description>
      <pubDate>Fri, 07 Aug 2009 08:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351444#M118094</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-08-07T08:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: convert decimal (comma to dot) postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351445#M118095</link>
      <description>in tfileinputdelimited you can set in advanced option custom decimal separaton, so custom coding not needed&lt;BR /&gt;bye</description>
      <pubDate>Fri, 07 Aug 2009 15:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351445#M118095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-07T15:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: convert decimal (comma to dot) postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351446#M118096</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi guys&lt;BR /&gt;It's me ... again !!! &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Here is an example of my file&lt;BR /&gt;_________________________&lt;BR /&gt;15;2013;25/02/1998;3;999;1;&lt;B&gt;1003,49&lt;/B&gt;&lt;BR /&gt;15;2105;25/02/1998;3;999;1;&lt;B&gt;1003,49&lt;/B&gt;&lt;BR /&gt;...&lt;BR /&gt;Well I want to convert decimal text column to floating point Postgres Column.&lt;BR /&gt;when i try to do that i've got an cute error message &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;&lt;BR /&gt;_________________________________________________________________&lt;BR /&gt;tarting job job_2 at 18:17 04/07/2007.&lt;BR /&gt; connecting to socket on port 3334&lt;BR /&gt; connected&lt;BR /&gt;Exception in component tFileInputDelimited_1&lt;BR /&gt;java.lang.NumberFormatException: For input string: "&lt;B&gt;&lt;FONT color="red"&gt;1003,49&lt;/FONT&gt;&lt;/B&gt;"&lt;BR /&gt; at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)&lt;BR /&gt; at java.lang.Float.parseFloat(Unknown Source)&lt;BR /&gt; at routines.system.ParserUtils.parseTo_float(ParserUtils.java:50)&lt;BR /&gt; at projet_1.job_2.job_2.tFileInputDelimited_1Process(job_2.java:296)&lt;BR /&gt; at projet_1.job_2.job_2.main(job_2.java:536)&lt;BR /&gt; disconnected&lt;BR /&gt;Job job_2 ended at 18:18 04/07/2007. &lt;BR /&gt;My question ...&lt;BR /&gt;&lt;B&gt;&lt;FONT color="blue"&gt;Is there an numeric pattern or an other trick to convert my column ?&lt;/FONT&gt;&lt;/B&gt;&lt;BR /&gt;like that &lt;B&gt;1003&lt;FONT color="red"&gt;,&lt;/FONT&gt;49&lt;/B&gt; to &lt;B&gt;1003&lt;FONT color="red"&gt;.&lt;/FONT&gt;49&lt;/B&gt;&lt;BR /&gt;THX&lt;BR /&gt;Regards ...&lt;BR /&gt;Didier&lt;BR /&gt;_____________________&lt;BR /&gt;&lt;B&gt;&lt;FONT color="blue"&gt;Under Windows XP&lt;BR /&gt;TOS:v2.1.0.M1_r3483&lt;BR /&gt;Oracle 10g&lt;BR /&gt;Postgres 8.2.3&lt;BR /&gt;jre 1.6&lt;/FONT&gt;&lt;/B&gt;&lt;BR /&gt;_________________________________________________________________&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Problem is that , is not the decimal separator in Java. 
&lt;BR /&gt;You have to read your fields as a String. 
&lt;BR /&gt;----------------------------------------------------------------------- 
&lt;BR /&gt; 
&lt;A href="http://ungvien.com.vn/employer/main.html" target="_blank" rel="nofollow noopener noreferrer"&gt;tuyen dung&lt;/A&gt; | 
&lt;A href="http://ungvien.com.vn" target="_blank" rel="nofollow noopener noreferrer"&gt;viec lam&lt;/A&gt; | 
&lt;A href="http://ungvien.com.vn" target="_blank" rel="nofollow noopener noreferrer"&gt;tim viec&lt;/A&gt;</description>
      <pubDate>Mon, 10 Aug 2009 10:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351446#M118096</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-08-10T10:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: convert decimal (comma to dot) postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351447#M118097</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi guys&lt;BR /&gt;It's me ... again !!! &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Here is an example of my file&lt;BR /&gt;_________________________&lt;BR /&gt;15;2013;25/02/1998;3;999;1;&lt;B&gt;1003,49&lt;/B&gt;&lt;BR /&gt;15;2105;25/02/1998;3;999;1;&lt;B&gt;1003,49&lt;/B&gt;&lt;BR /&gt;...&lt;BR /&gt;Well I want to convert decimal text column to floating point Postgres Column.&lt;BR /&gt;when i try to do that i've got an cute error message &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;&lt;BR /&gt;_________________________________________________________________&lt;BR /&gt;tarting job job_2 at 18:17 04/07/2007.&lt;BR /&gt; connecting to socket on port 3334&lt;BR /&gt; connected&lt;BR /&gt;Exception in component tFileInputDelimited_1&lt;BR /&gt;java.lang.NumberFormatException: For input string: "&lt;B&gt;&lt;FONT color="red"&gt;1003,49&lt;/FONT&gt;&lt;/B&gt;"&lt;BR /&gt; at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)&lt;BR /&gt; at java.lang.Float.parseFloat(Unknown Source)&lt;BR /&gt; at routines.system.ParserUtils.parseTo_float(ParserUtils.java:50)&lt;BR /&gt; at projet_1.job_2.job_2.tFileInputDelimited_1Process(job_2.java:296)&lt;BR /&gt; at projet_1.job_2.job_2.main(job_2.java:536)&lt;BR /&gt; disconnected&lt;BR /&gt;Job job_2 ended at 18:18 04/07/2007. &lt;BR /&gt;My question ...&lt;BR /&gt;&lt;B&gt;&lt;FONT color="blue"&gt;Is there an numeric pattern or an other trick to convert my column ?&lt;/FONT&gt;&lt;/B&gt;&lt;BR /&gt;like that &lt;B&gt;1003&lt;FONT color="red"&gt;,&lt;/FONT&gt;49&lt;/B&gt; to &lt;B&gt;1003&lt;FONT color="red"&gt;.&lt;/FONT&gt;49&lt;/B&gt;&lt;BR /&gt;THX&lt;BR /&gt;Regards ...&lt;BR /&gt;Didier&lt;BR /&gt;_____________________&lt;BR /&gt;&lt;B&gt;&lt;FONT color="blue"&gt;Under Windows XP&lt;BR /&gt;TOS:v2.1.0.M1_r3483&lt;BR /&gt;Oracle 10g&lt;BR /&gt;Postgres 8.2.3&lt;BR /&gt;jre 1.6&lt;/FONT&gt;&lt;/B&gt;&lt;BR /&gt;_________________________________________________________________&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Problem is that , is not the decimal separator in Java. 
&lt;BR /&gt;You have to read your fields as a String. 
&lt;BR /&gt;----------------------------------------------------------------------- 
&lt;BR /&gt; 
&lt;A href="http://ungvien.com.vn/employer/main.html" target="_blank" rel="nofollow noopener noreferrer"&gt;tuyen dung&lt;/A&gt; | 
&lt;A href="http://ungvien.com.vn" target="_blank" rel="nofollow noopener noreferrer"&gt;viec lam&lt;/A&gt; | 
&lt;A href="http://ungvien.com.vn" target="_blank" rel="nofollow noopener noreferrer"&gt;tim viec&lt;/A&gt;</description>
      <pubDate>Mon, 10 Aug 2009 10:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351447#M118097</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-08-10T10:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: convert decimal (comma to dot) postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351448#M118098</link>
      <description>Hi,&lt;BR /&gt;I have a similar problem.&lt;BR /&gt;Input string: "139,95 ?"&lt;BR /&gt;Expected output: "13995" Typ int.&lt;BR /&gt;I've solved this problem by using the treplce component (see image), but i think it is possible to do all the stuff in tmap component? am i right?</description>
      <pubDate>Wed, 15 Feb 2012 08:46:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-decimal-comma-to-dot-postgres/m-p/2351448#M118098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-15T08:46:19Z</dc:date>
    </item>
  </channel>
</rss>

