<?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: Float Datatype in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Float-Datatype/m-p/2321059#M91134</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Did you try to add the precision part of your float column to 2? If your use case is trying to deal with a floating point error, using a BigDecimal instead of a float will better.&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000BVjIDAA1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158204i8D9636D1DC93E32E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000BVjIDAA1.png" alt="0693p00000BVjIDAA1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jan 2021 10:59:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-01-28T10:59:19Z</dc:date>
    <item>
      <title>Float Datatype</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Float-Datatype/m-p/2321057#M91132</link>
      <description>&lt;P&gt;I have the source column as Product_Amount as Float&amp;nbsp;Datatype (Eg: &lt;B&gt;23.6161&lt;/B&gt;)&lt;/P&gt;&lt;P&gt;I am expecting this should load only the 2 decimal values (Eg: &lt;B&gt;23.61&lt;/B&gt;).&lt;/P&gt;&lt;P&gt;In Var&lt;/P&gt;&lt;P&gt;******&lt;/P&gt;&lt;P&gt;(int)(Float.parseFloat(row4.Product_Amount)*100) - Datatype is Int&lt;/P&gt;&lt;P&gt;Here I need to cut off the amount and need to multiply by 100 to convert to integer.&lt;/P&gt;&lt;P&gt;In output table&lt;/P&gt;&lt;P&gt;****************&lt;/P&gt;&lt;P&gt;Float.parseFloat(String.valueOf(Var.var9))/100&amp;nbsp;- Type is Float&lt;/P&gt;&lt;P&gt;While running the program I got the error as attached.&lt;/P&gt;&lt;P&gt;Note: But the same logics is worked while convert from String to Double.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 16:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Float-Datatype/m-p/2321057#M91132</guid>
      <dc:creator>SMahadevan1608028474</dc:creator>
      <dc:date>2021-01-26T16:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Float Datatype</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Float-Datatype/m-p/2321058#M91133</link>
      <description>&lt;P&gt;Can anyone assist is there any issue in my logics?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 17:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Float-Datatype/m-p/2321058#M91133</guid>
      <dc:creator>SMahadevan1608028474</dc:creator>
      <dc:date>2021-01-27T17:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Float Datatype</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Float-Datatype/m-p/2321059#M91134</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Did you try to add the precision part of your float column to 2? If your use case is trying to deal with a floating point error, using a BigDecimal instead of a float will better.&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000BVjIDAA1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158204i8D9636D1DC93E32E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000BVjIDAA1.png" alt="0693p00000BVjIDAA1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 10:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Float-Datatype/m-p/2321059#M91134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-28T10:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Float Datatype</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Float-Datatype/m-p/2321060#M91135</link>
      <description>&lt;P&gt; I have tried with state but am getting the same error , even I have changed to Precision "2"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Var&lt;/P&gt;&lt;P&gt;******&lt;/P&gt;&lt;P&gt;(int)(Float.parseFloat(row4.Product_Amount)*100) - Datatype is Int&lt;/P&gt;&lt;P&gt;In output table&lt;/P&gt;&lt;P&gt;****************&lt;/P&gt;&lt;P&gt;Float.parseFloat(String.valueOf(Var.var9))/100&amp;nbsp;- Type is Float and Precision as "2".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even I have tried with BigDecimal as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 11:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Float-Datatype/m-p/2321060#M91135</guid>
      <dc:creator>SMahadevan1608028474</dc:creator>
      <dc:date>2021-01-28T11:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Float Datatype</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Float-Datatype/m-p/2321061#M91136</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone can assist this issue. &lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 15:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Float-Datatype/m-p/2321061#M91136</guid>
      <dc:creator>SMahadevan1608028474</dc:creator>
      <dc:date>2021-02-04T15:25:18Z</dc:date>
    </item>
  </channel>
</rss>

