<?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 filling number with 0 while exporting using tFileOutputDelimited in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/filling-number-with-0-while-exporting-using-tFileOutputDelimited/m-p/2332019#M100941</link>
    <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a very simple job - reading data from database and exporting the result set in csv&lt;/P&gt;&lt;P&gt;using tDBInput to read the data, tFileOutPutDelimited to export the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the select statement I am converting an amount as DECIMAL (10,6) so in the result set I have &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;0.000487&lt;/LI&gt;&lt;LI&gt;0.144300&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc. etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the schema I defined it as Double as Type, Decimal as DB type with lenght 10 and precision 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I edit the csv output using notepad++ all the zeros as the end of the numbers are gone. so &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;0.000487 --&amp;gt; in the csv I get &lt;P&gt;0.000487&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;0.144300&lt;P&gt; --&amp;gt; in the csv I get 0.1443&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a way to have all the 6 decimals even if 0s ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sergio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&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 22:22:34 GMT</pubDate>
    <dc:creator>stagliaferri1640766615</dc:creator>
    <dc:date>2024-11-15T22:22:34Z</dc:date>
    <item>
      <title>filling number with 0 while exporting using tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/filling-number-with-0-while-exporting-using-tFileOutputDelimited/m-p/2332019#M100941</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a very simple job - reading data from database and exporting the result set in csv&lt;/P&gt;&lt;P&gt;using tDBInput to read the data, tFileOutPutDelimited to export the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the select statement I am converting an amount as DECIMAL (10,6) so in the result set I have &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;0.000487&lt;/LI&gt;&lt;LI&gt;0.144300&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc. etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the schema I defined it as Double as Type, Decimal as DB type with lenght 10 and precision 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I edit the csv output using notepad++ all the zeros as the end of the numbers are gone. so &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;0.000487 --&amp;gt; in the csv I get &lt;P&gt;0.000487&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;0.144300&lt;P&gt; --&amp;gt; in the csv I get 0.1443&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a way to have all the 6 decimals even if 0s ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sergio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&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 22:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/filling-number-with-0-while-exporting-using-tFileOutputDelimited/m-p/2332019#M100941</guid>
      <dc:creator>stagliaferri1640766615</dc:creator>
      <dc:date>2024-11-15T22:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: filling number with 0 while exporting using tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/filling-number-with-0-while-exporting-using-tFileOutputDelimited/m-p/2332020#M100942</link>
      <description>&lt;P&gt;I think the easiest way to achieve this is to output the decimals as String to the file (CSV files are essentially file of Strings anyway), then use code like this (maybe in a tMap before the output component) to format the numbers....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String.format("%.6f", row1.doubleColumn)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 15:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/filling-number-with-0-while-exporting-using-tFileOutputDelimited/m-p/2332020#M100942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-10T15:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: filling number with 0 while exporting using tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/filling-number-with-0-while-exporting-using-tFileOutputDelimited/m-p/2332021#M100943</link>
      <description>&lt;P&gt;it worked!!! thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 08:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/filling-number-with-0-while-exporting-using-tFileOutputDelimited/m-p/2332021#M100943</guid>
      <dc:creator>stagliaferri1640766615</dc:creator>
      <dc:date>2022-11-16T08:40:01Z</dc:date>
    </item>
  </channel>
</rss>

