<?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: Num function behaviour in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Num-function-behaviour/m-p/1199472#M386457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you moved average calculaton to other variable then passed that variable to num function then it is returning correct result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let var0 = ((9.34 + 9.34 + 9.34 + 9.20 )/4);&lt;/P&gt;&lt;P&gt;let var1 = num($(var0),'#.##');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let var2= num(9.305,'#.##');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2016 16:26:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-17T16:26:04Z</dc:date>
    <item>
      <title>Num function behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Num-function-behaviour/m-p/1199470#M386455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've applied &lt;STRONG&gt;Num&lt;/STRONG&gt; function in this case &lt;STRONG&gt;num(((9.34 + 9.34 + 9.34 + 9.20 )/4),'#.##0,00') &lt;/STRONG&gt;and&lt;STRONG&gt; &lt;/STRONG&gt;the result is&lt;STRONG&gt; "9.30" but I expected "9.31"&lt;/STRONG&gt; because the result of the operation result is&lt;STRONG&gt; "9.305". If I apply Num function to "9.305" &lt;/STRONG&gt;the result is the expecte&lt;STRONG&gt;d, "9.31"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why do it happens?&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 08:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Num-function-behaviour/m-p/1199470#M386455</guid>
      <dc:creator>moleroalonso</dc:creator>
      <dc:date>2016-10-17T08:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Num function behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Num-function-behaviour/m-p/1199471#M386456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should read about &lt;A href="https://community.qlik.com/qlik-blogpost/3471"&gt;Rounding Errors&lt;/A&gt; in QlikView&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 16:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Num-function-behaviour/m-p/1199471#M386456</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-17T16:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Num function behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Num-function-behaviour/m-p/1199472#M386457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you moved average calculaton to other variable then passed that variable to num function then it is returning correct result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let var0 = ((9.34 + 9.34 + 9.34 + 9.20 )/4);&lt;/P&gt;&lt;P&gt;let var1 = num($(var0),'#.##');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let var2= num(9.305,'#.##');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 16:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Num-function-behaviour/m-p/1199472#M386457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-17T16:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Num function behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Num-function-behaviour/m-p/1199473#M386458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank for your answers.&lt;/P&gt;&lt;P&gt;I have applied this solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(((9.34 + 9.34 + 9.34 + 9.20 )/4) + 0.000001,'#.##0,00')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a very little number that forces to rounding&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 09:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Num-function-behaviour/m-p/1199473#M386458</guid>
      <dc:creator>moleroalonso</dc:creator>
      <dc:date>2016-10-18T09:29:05Z</dc:date>
    </item>
  </channel>
</rss>

