<?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: Format a BigDecimal to 2 digits with globalMap. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Format-a-BigDecimal-to-2-digits-with-globalMap/m-p/2378165#M139976</link>
    <description>&lt;P&gt;Hi, could you try to use tRowGenerator with one column as Bigdecimal with the lenght and the precision you want and in the value you set (BigDecimal)globalMap.get("file_amt") ). Normally you will see 170695.00 if you link a tlogrow .&lt;/P&gt;&lt;P&gt;Also in your println you do a concatenation maybe the problem is here&lt;/P&gt;&lt;P&gt;maybe you could try  System.out.println("file_amt from GV = " + String.valueOf((BigDecimal)globalMap.get("file_amt") ));&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;</description>
    <pubDate>Fri, 18 Feb 2022 10:34:57 GMT</pubDate>
    <dc:creator>gjeremy1617088143</dc:creator>
    <dc:date>2022-02-18T10:34:57Z</dc:date>
    <item>
      <title>Format a BigDecimal to 2 digits with globalMap.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Format-a-BigDecimal-to-2-digits-with-globalMap/m-p/2378164#M139975</link>
      <description>&lt;P&gt;I'm trying to format a Big Decimal to two digits so I can use PUT and GET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data in the flow for file_amt is :  170695.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my tJavaRow.&lt;/P&gt;&lt;P&gt;BigDecimal file_amt&amp;nbsp;;&lt;/P&gt;&lt;P&gt;file_amt = output_row.f_amount ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;globalMap.put("file_amt",file_amt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System.out.println("file_amt from GV = " + (BigDecimal)globalMap.get("file_amt") );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as soon as I do a &lt;/P&gt;&lt;P&gt;globalMap.get &lt;/P&gt;the format has changed to :  170695&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Format-a-BigDecimal-to-2-digits-with-globalMap/m-p/2378164#M139975</guid>
      <dc:creator>RVeitch_84</dc:creator>
      <dc:date>2024-11-15T23:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Format a BigDecimal to 2 digits with globalMap.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Format-a-BigDecimal-to-2-digits-with-globalMap/m-p/2378165#M139976</link>
      <description>&lt;P&gt;Hi, could you try to use tRowGenerator with one column as Bigdecimal with the lenght and the precision you want and in the value you set (BigDecimal)globalMap.get("file_amt") ). Normally you will see 170695.00 if you link a tlogrow .&lt;/P&gt;&lt;P&gt;Also in your println you do a concatenation maybe the problem is here&lt;/P&gt;&lt;P&gt;maybe you could try  System.out.println("file_amt from GV = " + String.valueOf((BigDecimal)globalMap.get("file_amt") ));&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 10:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Format-a-BigDecimal-to-2-digits-with-globalMap/m-p/2378165#M139976</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-02-18T10:34:57Z</dc:date>
    </item>
  </channel>
</rss>

