<?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 convert string to double/float in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/convert-string-to-double-float/m-p/2345367#M112908</link>
    <description>Hi, 
&lt;BR /&gt;I got an issue where my source is delimiter file and it recognize a column as string in which it containing a value. I wants to convert from sting to double / float but it already rounded the value. I don't want it to be rounded. See example below: 
&lt;BR /&gt;INPUT 
&lt;BR /&gt;------- 
&lt;BR /&gt;0.00000215 
&lt;BR /&gt;0.00001645 
&lt;BR /&gt;After converting to double / float 
&lt;BR /&gt;OUTPUT 
&lt;BR /&gt;--------- 
&lt;BR /&gt;0.000002 
&lt;BR /&gt;0.00002 
&lt;BR /&gt;EXPECTED OUTPUT 
&lt;BR /&gt;--------------------- 
&lt;BR /&gt;0.00000215 
&lt;BR /&gt;0.00001645 
&lt;BR /&gt; 
&lt;BR /&gt;Any idea? Please help me 
&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;Regards, 
&lt;BR /&gt;Kal</description>
    <pubDate>Tue, 28 May 2013 05:35:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-05-28T05:35:19Z</dc:date>
    <item>
      <title>convert string to double/float</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-string-to-double-float/m-p/2345367#M112908</link>
      <description>Hi, 
&lt;BR /&gt;I got an issue where my source is delimiter file and it recognize a column as string in which it containing a value. I wants to convert from sting to double / float but it already rounded the value. I don't want it to be rounded. See example below: 
&lt;BR /&gt;INPUT 
&lt;BR /&gt;------- 
&lt;BR /&gt;0.00000215 
&lt;BR /&gt;0.00001645 
&lt;BR /&gt;After converting to double / float 
&lt;BR /&gt;OUTPUT 
&lt;BR /&gt;--------- 
&lt;BR /&gt;0.000002 
&lt;BR /&gt;0.00002 
&lt;BR /&gt;EXPECTED OUTPUT 
&lt;BR /&gt;--------------------- 
&lt;BR /&gt;0.00000215 
&lt;BR /&gt;0.00001645 
&lt;BR /&gt; 
&lt;BR /&gt;Any idea? Please help me 
&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;Regards, 
&lt;BR /&gt;Kal</description>
      <pubDate>Tue, 28 May 2013 05:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-string-to-double-float/m-p/2345367#M112908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-28T05:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: convert string to double/float</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-string-to-double-float/m-p/2345368#M112909</link>
      <description>Hi, 
&lt;BR /&gt;Could you use 
&lt;A href="https://help.talend.com/search/all?query=tConvertType&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tConvertType&lt;/A&gt; to achieve your goal? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEMi.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148126iE35AACB4B825BA00/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEMi.png" alt="0683p000009MEMi.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEUH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130912i1FD086091945F81D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEUH.png" alt="0683p000009MEUH.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 28 May 2013 06:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-string-to-double-float/m-p/2345368#M112909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-28T06:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: convert string to double/float</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-string-to-double-float/m-p/2345369#M112910</link>
      <description>Hi Sabrina, 
&lt;BR /&gt;I used exactly what you did. i got rounded decimal values. You can see the difference between VALUE_String and VALUE_Float as per below: 
&lt;BR /&gt; 
&lt;BR /&gt;.------------+------------. 
&lt;BR /&gt;| tLogRow_1 | 
&lt;BR /&gt;|=-----------+-----------=| 
&lt;BR /&gt;|VALUE_string|VALUE_float | 
&lt;BR /&gt;|=-----------+-----------=| 
&lt;BR /&gt;|0.0000000000|0.0 | 
&lt;BR /&gt;|0.0000001000|0.0000001 | 
&lt;BR /&gt;|0.0000001000|0.0000001 | 
&lt;BR /&gt;|0.0000021500|0.000002 | 
&lt;BR /&gt;|0.0000021500|0.000002 | 
&lt;BR /&gt;|0.0000164500|0.00002 | 
&lt;BR /&gt;|0.0000164500|0.00002 | 
&lt;BR /&gt;|0.0000734000|0.00007 | 
&lt;BR /&gt;|0.0000734000|0.00007 | 
&lt;BR /&gt;|0.0004707000|0.0005 | 
&lt;BR /&gt;|0.0006008000|0.0006 | 
&lt;BR /&gt;|0.0006008000|0.0006 | 
&lt;BR /&gt;|0.0012983500|0.00129835 | 
&lt;BR /&gt;|0.0016000000|0.0016 | 
&lt;BR /&gt;|0.0024699000|0.0024699 | 
&lt;BR /&gt;|0.0039699000|0.0039699 | 
&lt;BR /&gt;|0.0054899000|0.0054899 | 
&lt;BR /&gt;|0.0067128000|0.0067128 | 
&lt;BR /&gt;|0.0087000000|0.0087 | 
&lt;BR /&gt;|0.0123961500|0.01239615 | 
&lt;BR /&gt;|0.0150000000|0.015 | 
&lt;BR /&gt;|0.0182337000|0.0182337 | 
&lt;BR /&gt;|0.0208000000|0.0208 | 
&lt;BR /&gt;|0.0225734000|0.0225734 | 
&lt;BR /&gt;|0.0251000000|0.0251 | 
&lt;BR /&gt;|0.0271793500|0.02717935 | 
&lt;BR /&gt;|0.0297519500|0.02975195 | 
&lt;BR /&gt;|0.0317519500|0.03175195 | 
&lt;BR /&gt;|0.0339575500|0.03395755 | 
&lt;BR /&gt;|0.0356000000|0.0356 | 
&lt;BR /&gt;I need to have the value exactly in float/double format since i wants to do some calculation. When the values already rounded then the end values of calculation will slightly inaccurate. 
&lt;BR /&gt; 
&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;</description>
      <pubDate>Tue, 28 May 2013 07:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-string-to-double-float/m-p/2345369#M112910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-28T07:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: convert string to double/float</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-string-to-double-float/m-p/2345370#M112911</link>
      <description>use Double.parseDouble(text) in a tMap rule or Float.parseFloat(text)</description>
      <pubDate>Tue, 28 May 2013 09:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-string-to-double-float/m-p/2345370#M112911</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2013-05-28T09:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: convert string to double/float</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-string-to-double-float/m-p/2345371#M112912</link>
      <description>Hi Janhess, 
&lt;BR /&gt;To used that way, the same output returned. 
&lt;BR /&gt; 
&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;</description>
      <pubDate>Tue, 28 May 2013 10:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-string-to-double-float/m-p/2345371#M112912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-28T10:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: convert string to double/float</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-string-to-double-float/m-p/2345372#M112913</link>
      <description>Hi, &lt;BR /&gt;Could you please give us a screenshot of your workflow and the setting of your schema so that we can take a testing for your case.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 28 May 2013 10:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-string-to-double-float/m-p/2345372#M112913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-28T10:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: convert string to double/float</title>
      <link>https://community.qlik.com/t5/Talend-Studio/convert-string-to-double-float/m-p/2345373#M112914</link>
      <description>It's strange that only the first half of the results have been truncated.&lt;BR /&gt;Why don't you define the input as double in your input file schema.</description>
      <pubDate>Tue, 28 May 2013 13:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/convert-string-to-double-float/m-p/2345373#M112914</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2013-05-28T13:53:55Z</dc:date>
    </item>
  </channel>
</rss>

