<?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: [resolved] How to devide a BigDecimal value... in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-devide-a-BigDecimal-value/m-p/2203768#M4929</link>
    <description>Hey Lijo,
&lt;BR /&gt;thank you for your help! You pushed me into the right direction!
&lt;BR /&gt;I found a second problem in my syntax: I muddled up the source value and the division value; for example:
&lt;BR /&gt;100 divided by 15 (false)
&lt;BR /&gt;instead of
&lt;BR /&gt;15 divided by 100 (correct)
&lt;BR /&gt;
&lt;BR /&gt;So the code is now working, I just needed to swap those values in the code, thanks again!
&lt;BR /&gt;
&lt;PRE&gt;row4.MWST_SATZ.divide(new BigDecimal(100),java.math.MathContext.DECIMAL32)&lt;/PRE&gt;</description>
    <pubDate>Fri, 13 May 2011 13:07:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-05-13T13:07:27Z</dc:date>
    <item>
      <title>[resolved] How to devide a BigDecimal value...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-devide-a-BigDecimal-value/m-p/2203762#M4923</link>
      <description>Hi *,
&lt;BR /&gt;using tMap, I'm trying to devide a BigDecimal vaule by 100. Pretty simple, I thought. 
&lt;BR /&gt;Source and target fields are BigDecimal, but by using the following syntax I get an error like: "Exception in component tRowGenerator_1" by clicking the 'Test'-Button in the expression editor of the target field.
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;new BigDecimal(100).divide(row1.theUltimateValueWhoNeedsToGetDevidedBySomething)&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;What is the mistake?
&lt;BR /&gt;Thank you!
&lt;BR /&gt;Ben</description>
      <pubDate>Sat, 16 Nov 2024 12:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-devide-a-BigDecimal-value/m-p/2203762#M4923</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to devide a BigDecimal value...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-devide-a-BigDecimal-value/m-p/2203763#M4924</link>
      <description>Here is the error I get by running the job:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;no exact representable decimal result.&lt;BR /&gt;	at java.math.BigDecimal.divide(Unknown Source)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 13 May 2011 08:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-devide-a-BigDecimal-value/m-p/2203763#M4924</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-13T08:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to devide a BigDecimal value...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-devide-a-BigDecimal-value/m-p/2203764#M4925</link>
      <description>Is nobody able to help me out on this issue?</description>
      <pubDate>Fri, 13 May 2011 11:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-devide-a-BigDecimal-value/m-p/2203764#M4925</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-13T11:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to devide a BigDecimal value...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-devide-a-BigDecimal-value/m-p/2203765#M4926</link>
      <description>Hi
&lt;BR /&gt;use
&lt;BR /&gt;new BigDecimal(100).divide(row1.theUltimateValueWhoNeedsToGetDevidedBySomething,RoundingMode.HALF_UP)</description>
      <pubDate>Fri, 13 May 2011 11:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-devide-a-BigDecimal-value/m-p/2203765#M4926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-13T11:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to devide a BigDecimal value...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-devide-a-BigDecimal-value/m-p/2203766#M4927</link>
      <description>Thank you! 
&lt;BR /&gt;But now Talend is telling me that 'RoundingMode' cannot get resolved... Would it be better to change the data type into double or something like that?</description>
      <pubDate>Fri, 13 May 2011 12:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-devide-a-BigDecimal-value/m-p/2203766#M4927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-13T12:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to devide a BigDecimal value...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-devide-a-BigDecimal-value/m-p/2203767#M4928</link>
      <description>Hi
&lt;BR /&gt;Sorry i didnt give fully 
&lt;BR /&gt;write java.math.RoundingMode.HALF_UP instead of RoundingMode.HALF_UP</description>
      <pubDate>Fri, 13 May 2011 12:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-devide-a-BigDecimal-value/m-p/2203767#M4928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-13T12:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to devide a BigDecimal value...</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-devide-a-BigDecimal-value/m-p/2203768#M4929</link>
      <description>Hey Lijo,
&lt;BR /&gt;thank you for your help! You pushed me into the right direction!
&lt;BR /&gt;I found a second problem in my syntax: I muddled up the source value and the division value; for example:
&lt;BR /&gt;100 divided by 15 (false)
&lt;BR /&gt;instead of
&lt;BR /&gt;15 divided by 100 (correct)
&lt;BR /&gt;
&lt;BR /&gt;So the code is now working, I just needed to swap those values in the code, thanks again!
&lt;BR /&gt;
&lt;PRE&gt;row4.MWST_SATZ.divide(new BigDecimal(100),java.math.MathContext.DECIMAL32)&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 May 2011 13:07:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-devide-a-BigDecimal-value/m-p/2203768#M4929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-13T13:07:27Z</dc:date>
    </item>
  </channel>
</rss>

