<?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 get decimals when divide two numbers in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-get-decimals-when-divide-two-numbers/m-p/2375331#M137767</link>
    <description>Hi, &lt;BR /&gt;Thanks for your feedback.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
    <pubDate>Thu, 22 Aug 2013 08:30:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-08-22T08:30:58Z</dc:date>
    <item>
      <title>how to get decimals when divide two numbers</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-get-decimals-when-divide-two-numbers/m-p/2375327#M137763</link>
      <description>can anyone give me a tip how to get decimals when divide two numbers?
&lt;BR /&gt;output is Double
&lt;BR /&gt;I get the output 0.0
&lt;BR /&gt;How do i get 0.1???
&lt;BR /&gt;output_row.price =1.0/10</description>
      <pubDate>Wed, 21 Aug 2013 13:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-get-decimals-when-divide-two-numbers/m-p/2375327#M137763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-21T13:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to get decimals when divide two numbers</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-get-decimals-when-divide-two-numbers/m-p/2375328#M137764</link>
      <description>Hi, 
&lt;BR /&gt;If I understand you well, do you want to convert Double to Decimal after the divide operation? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAr8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131365iA16F56EF261A0BBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAr8.png" alt="0683p000009MAr8.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 22 Aug 2013 05:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-get-decimals-when-divide-two-numbers/m-p/2375328#M137764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-22T05:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to get decimals when divide two numbers</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-get-decimals-when-divide-two-numbers/m-p/2375329#M137765</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;can anyone give me a tip how to get decimals when divide two numbers?&lt;BR /&gt;output is Double&lt;BR /&gt;I get the output 0.0&lt;BR /&gt;How do i get 0.1???&lt;BR /&gt;output_row.price =1.0/10&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Is this the real expression? You should not have an issue if your output row is defined as double. 
&lt;BR /&gt;You could try 1.0d/10d 
&lt;BR /&gt;But this expression looks okay to me 
&lt;BR /&gt;Your result suggests that you're getting and integer division that is then converted to a double</description>
      <pubDate>Thu, 22 Aug 2013 07:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-get-decimals-when-divide-two-numbers/m-p/2375329#M137765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-22T07:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to get decimals when divide two numbers</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-get-decimals-when-divide-two-numbers/m-p/2375330#M137766</link>
      <description>Thanks!
&lt;BR /&gt;A mixture between both worked:
&lt;BR /&gt;new java.math.BigDecimal((double)(TalendDate.diffDate(rowHoved.TrombolyseStarttid,rowHoved.Innleggelsestidspunkt,"ss"))/3600d)</description>
      <pubDate>Thu, 22 Aug 2013 08:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-get-decimals-when-divide-two-numbers/m-p/2375330#M137766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-22T08:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to get decimals when divide two numbers</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-get-decimals-when-divide-two-numbers/m-p/2375331#M137767</link>
      <description>Hi, &lt;BR /&gt;Thanks for your feedback.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 22 Aug 2013 08:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-get-decimals-when-divide-two-numbers/m-p/2375331#M137767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-22T08:30:58Z</dc:date>
    </item>
  </channel>
</rss>

