<?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: Floating Point Excel Output automatically rounding but need precision in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Floating-Point-Excel-Output-automatically-rounding-but-need/m-p/2251809#M35637</link>
    <description>&lt;P&gt;Hi Sabrina,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the Variables Table and the output schema settings of the relevant tMap. Is that what you mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuTO"&gt;tMapSettings-ExcelFloating.png&lt;/A&gt;</description>
    <pubDate>Fri, 21 Dec 2018 09:35:07 GMT</pubDate>
    <dc:creator>mobmsc2</dc:creator>
    <dc:date>2018-12-21T09:35:07Z</dc:date>
    <item>
      <title>Floating Point Excel Output automatically rounding but need precision</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Floating-Point-Excel-Output-automatically-rounding-but-need/m-p/2251807#M35635</link>
      <description>&lt;P&gt;I have a tMap with runs a calculation and stores it in a float variable before its outputted to excel. My problem is that the output appears as if its rounded but I can't figure out why&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My calculation starts by adding 3 integers and stores that result in a variable "IntValue"&lt;/P&gt; 
&lt;P&gt;Var.&lt;SPAN&gt;IntValue is then divided it by both 11 and 12 and stores those in float variables Float11 &amp;amp; Float12 respectively.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;When I output Var.Float11 and Var.Float12 to a generic schema based output table to Columns of type float I get whole numbers (no decimal values) in both excel and csv file.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;If I calculate the formula in Excel myself I get more expected values which include decimal places.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Where in Talend am I going wrong that I don't get the same result?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Floating-Point-Excel-Output-automatically-rounding-but-need/m-p/2251807#M35635</guid>
      <dc:creator>mobmsc2</dc:creator>
      <dc:date>2024-11-16T06:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point Excel Output automatically rounding but need precision</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Floating-Point-Excel-Output-automatically-rounding-but-need/m-p/2251808#M35636</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Would you mind posting your tMap setting screenshots into forum?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2018 08:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Floating-Point-Excel-Output-automatically-rounding-but-need/m-p/2251808#M35636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-21T08:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point Excel Output automatically rounding but need precision</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Floating-Point-Excel-Output-automatically-rounding-but-need/m-p/2251809#M35637</link>
      <description>&lt;P&gt;Hi Sabrina,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the Variables Table and the output schema settings of the relevant tMap. Is that what you mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuTO"&gt;tMapSettings-ExcelFloating.png&lt;/A&gt;</description>
      <pubDate>Fri, 21 Dec 2018 09:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Floating-Point-Excel-Output-automatically-rounding-but-need/m-p/2251809#M35637</guid>
      <dc:creator>mobmsc2</dc:creator>
      <dc:date>2018-12-21T09:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point Excel Output automatically rounding but need precision</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Floating-Point-Excel-Output-automatically-rounding-but-need/m-p/2251810#M35638</link>
      <description>&lt;P&gt;Also if add a tRowLog to output the flow the column in question is also a whole number&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My solution was to change the tMap Variable Counted from int to float (in the image attached earlier). That means the calculations where I divide by other numbers is based on a float as input instead of an integer value. I assumed only the end result needed to be floating and not&amp;nbsp;the dividend.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 11:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Floating-Point-Excel-Output-automatically-rounding-but-need/m-p/2251810#M35638</guid>
      <dc:creator>mobmsc2</dc:creator>
      <dc:date>2019-01-02T11:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point Excel Output automatically rounding but need precision</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Floating-Point-Excel-Output-automatically-rounding-but-need/m-p/2251811#M35639</link>
      <description>&lt;P&gt;use value like 11.0 instead of 11.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Java , if you divide Int to Int , it will be rounded before Type Conversion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check result of below commands&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.out.println(11/10);&lt;BR /&gt;System.out.println(11/10.0);&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 12:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Floating-Point-Excel-Output-automatically-rounding-but-need/m-p/2251811#M35639</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-01-02T12:09:58Z</dc:date>
    </item>
  </channel>
</rss>

