<?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: Convert from BigDecimal to String in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Convert-from-BigDecimal-to-String/m-p/2249020#M33694</link>
    <description>Screenshot - &lt;A href="http://screencast.com/t/lSsndd6VC" rel="nofollow noopener noreferrer"&gt;http://screencast.com/t/lSsndd6VC&lt;/A&gt;</description>
    <pubDate>Sun, 19 Jan 2014 02:34:37 GMT</pubDate>
    <dc:creator>mgchong</dc:creator>
    <dc:date>2014-01-19T02:34:37Z</dc:date>
    <item>
      <title>Convert from BigDecimal to String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-from-BigDecimal-to-String/m-p/2249019#M33693</link>
      <description>Hi guys,&lt;BR /&gt;My goal is to convert from source value 0.0000 (4 precision) to 0.00 (2 precision) in String format.&lt;BR /&gt;I noticed there is an issue when converting from BigDecimal to String. For example, my source file with value 0.0000 (I am setting it as 2 precision in BigDecimal format). Next, I am using tmap to convert it into string. (refer to my attached screen shot).&lt;BR /&gt;The problem is that after converting to String, the value change back to 4 precision 0.0000 instead of 0.00</description>
      <pubDate>Sun, 19 Jan 2014 02:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-from-BigDecimal-to-String/m-p/2249019#M33693</guid>
      <dc:creator>mgchong</dc:creator>
      <dc:date>2014-01-19T02:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Convert from BigDecimal to String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-from-BigDecimal-to-String/m-p/2249020#M33694</link>
      <description>Screenshot - &lt;A href="http://screencast.com/t/lSsndd6VC" rel="nofollow noopener noreferrer"&gt;http://screencast.com/t/lSsndd6VC&lt;/A&gt;</description>
      <pubDate>Sun, 19 Jan 2014 02:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-from-BigDecimal-to-String/m-p/2249020#M33694</guid>
      <dc:creator>mgchong</dc:creator>
      <dc:date>2014-01-19T02:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert from BigDecimal to String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-from-BigDecimal-to-String/m-p/2249021#M33695</link>
      <description>You could do this:
&lt;BR /&gt;
&lt;PRE&gt;java.text.NumberFormat.getInstance(Locale.ENGLISH).format(Math.round(row1.my_big_decimal_value.doubleValue() * 100d) / 100d)&lt;/PRE&gt;
&lt;BR /&gt;The precision in your input flow will not used to read / create the BigDecimal value. Length and precision are only be used if you create a table or if you use the build-in to string conversion.</description>
      <pubDate>Sun, 19 Jan 2014 21:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-from-BigDecimal-to-String/m-p/2249021#M33695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-19T21:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert from BigDecimal to String</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-from-BigDecimal-to-String/m-p/2249022#M33696</link>
      <description>Hi Jlolling,
&lt;BR /&gt;Thanks for the information.</description>
      <pubDate>Mon, 20 Jan 2014 13:13:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-from-BigDecimal-to-String/m-p/2249022#M33696</guid>
      <dc:creator>mgchong</dc:creator>
      <dc:date>2014-01-20T13:13:20Z</dc:date>
    </item>
  </channel>
</rss>

