<?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 bigDecimal to double in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305156#M76845</link>
    <description>You will not losing any precision if you only transfer data also on Double.
&lt;BR /&gt;You should use an expression in your tMap:
&lt;BR /&gt;row1.my_big_decimal != null ? row1.my_big_decimal.doubleValue() : null</description>
    <pubDate>Mon, 14 Apr 2014 21:44:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-14T21:44:01Z</dc:date>
    <item>
      <title>How to convert bigDecimal to double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305154#M76843</link>
      <description>Hello, 
&lt;BR /&gt;I have a AS400 database that contains data with decimal type. 
&lt;BR /&gt;when I loaded the data ,Talend convert the Decimal type to BigDecimal . 
&lt;BR /&gt;And for the destination I have a postgres database . 
&lt;BR /&gt; when I made the connection between the two databases using a tmap component. this error msg appears: 
&lt;BR /&gt;Exception in thread "main" java.lang.Error: Problèmes de compilation non résolus : 
&lt;BR /&gt; Non concordance de types : impossible de convertir de BigDecimal en double 
&lt;BR /&gt; Non concordance de types : impossible de convertir de BigDecimal en double 
&lt;BR /&gt; Non concordance de types : impossible de convertir de BigDecimal en double 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDUq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155710i15EEB7DB0997A439/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDUq.png" alt="0683p000009MDUq.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 14 Apr 2014 14:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305154#M76843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-14T14:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert bigDecimal to double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305155#M76844</link>
      <description>hi asterisks,
&lt;BR /&gt;first Talend use a Xml file to Map DB type to JavaType (also known as Talend Type) and 'vice-versa'.
&lt;BR /&gt;There is no implicit cast between type.
&lt;BR /&gt;So you can't change the way Talend Map conversion Type by Default.
&lt;BR /&gt;You have to convert type if necessary ; for that purpose use tConvertType.
&lt;BR /&gt;BE AWARE about java type for decimal and loosing precision with floating type like Float &amp;amp; Double
&lt;BR /&gt;hope it helps
&lt;BR /&gt;regards
&lt;BR /&gt;laurent</description>
      <pubDate>Mon, 14 Apr 2014 16:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305155#M76844</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-14T16:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert bigDecimal to double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305156#M76845</link>
      <description>You will not losing any precision if you only transfer data also on Double.
&lt;BR /&gt;You should use an expression in your tMap:
&lt;BR /&gt;row1.my_big_decimal != null ? row1.my_big_decimal.doubleValue() : null</description>
      <pubDate>Mon, 14 Apr 2014 21:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305156#M76845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-14T21:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert bigDecimal to double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305157#M76846</link>
      <description>hi all, 
&lt;BR /&gt;Because floating-point numbers have a limited number of digits, they cannot represent all real numbers accurately: when there are more digits than the format allows, the leftover ones are omitted - the number isrounded. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;You will not losing any precision if you only transfer data also on Double&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;You mean if you make any calculation on decimal and JUST propagate value through the flows !? 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent</description>
      <pubDate>Tue, 15 Apr 2014 08:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305157#M76846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-15T08:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert bigDecimal to double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305158#M76847</link>
      <description>hello Mr.JLOLLING, 
&lt;BR /&gt;Can you please tell me,where exactly I'll put the expression.... 
&lt;BR /&gt;Regards,</description>
      <pubDate>Tue, 15 Apr 2014 11:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305158#M76847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-15T11:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert bigDecimal to double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305159#M76848</link>
      <description>Hi, 
&lt;BR /&gt;Please have a look at screenshot 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDSP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131797i0B08A468C9016998/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDSP.png" alt="0683p000009MDSP.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 16 Apr 2014 08:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305159#M76848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-16T08:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert bigDecimal to double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305160#M76849</link>
      <description>hello,&lt;BR /&gt;it works, thank you a lot&lt;BR /&gt;Best regards</description>
      <pubDate>Thu, 17 Apr 2014 11:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305160#M76849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-17T11:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert bigDecimal to double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305161#M76850</link>
      <description>Hi, &lt;BR /&gt;Thanks for your feedback. Could you please click the "Set this topic as resolved" link which is right underneath your initial post? This way, other users will be informed that this thread has been resolved.&lt;BR /&gt;Many thanks&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 17 Apr 2014 11:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305161#M76850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-17T11:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert bigDecimal to double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305162#M76851</link>
      <description>@jlolling 
&lt;BR /&gt;Thanks for the expression &amp;nbsp;&amp;nbsp; 
&lt;BR /&gt;May you can give a short exaplaination what he expression does &amp;nbsp; 
&lt;BR /&gt;Will be helpful &amp;nbsp; 
&lt;BR /&gt;Additional: Could i use the expression for an Fieldlookup also or only for &amp;nbsp;mapping.&amp;nbsp; 
&lt;BR /&gt;Thanks in advance&amp;nbsp; 
&lt;BR /&gt;regards fireskyer</description>
      <pubDate>Fri, 08 Apr 2016 08:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-bigDecimal-to-double/m-p/2305162#M76851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-08T08:57:13Z</dc:date>
    </item>
  </channel>
</rss>

