<?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 of decimal number in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Format-of-decimal-number/m-p/2330346#M99437</link>
    <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;in a component tMap. In this place, it don't work,it say "syntax error"&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Write these code in a routine, then call the routine on tMap.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
    <pubDate>Fri, 12 Jun 2009 09:40:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-06-12T09:40:03Z</dc:date>
    <item>
      <title>Format of decimal number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Format-of-decimal-number/m-p/2330343#M99434</link>
      <description>Hello: 
&lt;BR /&gt;I need convert some numbers, from a BD in format double, to a XML file. I need than the number has two decimals. How can I do, when the original number is 0? I only get the result 0.0, but I need 0.00 
&lt;BR /&gt;Another example of the same problem: when I pass the number 8.36 to SML, I need six decimals, and so I need 8.360000 
&lt;BR /&gt;Greetings Thanks 
&lt;BR /&gt;Jose</description>
      <pubDate>Sat, 16 Nov 2024 13:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Format-of-decimal-number/m-p/2330343#M99434</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Format of decimal number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Format-of-decimal-number/m-p/2330344#M99435</link>
      <description>With java jobs, you can use the java class "DecimalFormat" in a tJavaRow :&lt;BR /&gt;&lt;PRE&gt;DecimalFormat myFormat = new DecimalFormat("0.00");&lt;BR /&gt;rowX.myFormattedDate = myFormat.format(rowX.myNumericRow);&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jun 2009 18:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Format-of-decimal-number/m-p/2330344#M99435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-08T18:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Format of decimal number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Format-of-decimal-number/m-p/2330345#M99436</link>
      <description>Thank you for the answer, but...
&lt;BR /&gt;I need put this code in the "expression Builder", in a component tMap. In this place, it don't work,it say "syntax error". I think than I could use a direct function to became the result. Some idea??
&lt;BR /&gt;Greetings</description>
      <pubDate>Fri, 12 Jun 2009 09:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Format-of-decimal-number/m-p/2330345#M99436</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-06-12T09:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Format of decimal number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Format-of-decimal-number/m-p/2330346#M99437</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;in a component tMap. In this place, it don't work,it say "syntax error"&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Write these code in a routine, then call the routine on tMap.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 12 Jun 2009 09:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Format-of-decimal-number/m-p/2330346#M99437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-12T09:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Format of decimal number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Format-of-decimal-number/m-p/2330347#M99438</link>
      <description>Thank you for the answer.&lt;BR /&gt;If I wat to use a conditional sentence, can I used some function in a tMap, or I must add this conditional sentence in a routine too?&lt;BR /&gt;I think, for example:&lt;BR /&gt;if field1 == Y&lt;BR /&gt;     "ELECTRONIC"&lt;BR /&gt;else&lt;BR /&gt;     POSTAL&lt;BR /&gt;Greetings</description>
      <pubDate>Wed, 17 Jun 2009 12:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Format-of-decimal-number/m-p/2330347#M99438</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-06-17T12:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Format of decimal number</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Format-of-decimal-number/m-p/2330348#M99439</link>
      <description>hello,
&lt;BR /&gt; you can use this in a tMap expression field :
&lt;BR /&gt; 1) Y, POSTAL and field1 are var : field1 == Y ? "ELECTRONIC" : POSTAL 
&lt;BR /&gt; 2) Y, POSTAL are String : "Y".equals(field1) ? "ELECTRONIC" : "POSTAL"</description>
      <pubDate>Wed, 17 Jun 2009 13:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Format-of-decimal-number/m-p/2330348#M99439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-17T13:45:20Z</dc:date>
    </item>
  </channel>
</rss>

