<?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 Can someone explain this behavior...? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127021#M370891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please explain why I get 243.59999999999.... when the value is 243.60?&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Clearly I am missing something but I can't for the life of me find an explanation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134772_Untitled.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2016 16:09:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-17T16:09:10Z</dc:date>
    <item>
      <title>Can someone explain this behavior...?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127021#M370891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please explain why I get 243.59999999999.... when the value is 243.60?&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Clearly I am missing something but I can't for the life of me find an explanation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134772_Untitled.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 16:09:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127021#M370891</guid>
      <dc:creator />
      <dc:date>2016-08-17T16:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain this behavior...?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127022#M370892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of Qlikview are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 16:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127022#M370892</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2016-08-17T16:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain this behavior...?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127023#M370893</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;What I found is if you keep 14 digit decimal then it will show result the way you are getting, but if you reduce one decimal zero then it will show you correct result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be the issue is with the limit of the decimal numbers. Not sure though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 17:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127023#M370893</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-08-17T17:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain this behavior...?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127024#M370894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, see here: &lt;A href="https://community.qlik.com/qlik-blogpost/3471"&gt;Rounding Errors&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 17:15:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127024#M370894</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-08-17T17:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain this behavior...?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127025#M370895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like bug or limitation of num function. I tried =num(243.60,'#,##0.0000000000000') and it works for me with (13 zeros)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 03:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127025#M370895</guid>
      <dc:creator>Siva_Sankar</dc:creator>
      <dc:date>2016-08-18T03:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain this behavior...?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127026#M370896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @Siva Sankar @Kaushik Solanki @Marcus Sommer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you reply. I feel more inclined to agree with Siva and Kaushik I think there might be some limitation (bug) in the num function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read the rounding errors post by HIC but I don't think it applies. But I find this disturbing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;/SPAN&gt;&lt;/SPAN&gt; Rouding Errors Post &lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;EM&gt;This becomes obvious if you look at the hexadecimal representation of 0.01:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 (decimal) = 0.028F5C28F5C28F…. (hex)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The sequence …28F5C… is repeated an infinite number of times, but since QlikView uses a finite number of binary digits (all according to the IEEE standard), QlikView will internally use a “rounded” number....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;/SPAN&gt;&lt;/SPAN&gt; Rouding Errors Post &lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=====&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I convert the same number 243.60 in SQL SERVER to DECIMAL I get as many zeros as possible. See example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&amp;nbsp; CAST(243.60 AS DECIMAL(20,17))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result : 243.60000000000000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect Qlikview to behave in the same way instead of returning &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;243.59999999999 which is completely inaccurate.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 08:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127026#M370896</guid>
      <dc:creator />
      <dc:date>2016-08-18T08:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain this behavior...?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127027#M370897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either you may reach out qliktech support team so that they can raise it as a bug and fix it in next release or will give explanation if there is a limition of this function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 09:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127027#M370897</guid>
      <dc:creator>Siva_Sankar</dc:creator>
      <dc:date>2016-08-18T09:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain this behavior...?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127028#M370898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @siva sankar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have logged a case with Qlikview Support I let you know how it goes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 09:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127028#M370898</guid>
      <dc:creator />
      <dc:date>2016-08-18T09:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain this behavior...?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127029#M370899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For me it's not a bug else an intentionally designed behaviour - which had unfortunalely disadavantages - by using a relative simple method to process numbers (no data-types, limitating on max. 14 digits, no double-rounding or other overhead) to speed up the processing (and it worked). Each number-processing will have it's limitations and will be always a compromise between the accuracy and the needed CPU +&amp;nbsp; RAM resources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 10:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127029#M370899</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-08-18T10:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain this behavior...?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127030#M370900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the reply from support:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; color: #737373; font-family: arial, verdana, sans-serif; background: #ffffff;"&gt;QlikView uses IEEE 754 64-bit double-precision binary floating-point format to store all numbers. This means that 64 bits are used to store a&lt;/P&gt;&lt;P style="font-size: 13px; color: #737373; font-family: arial, verdana, sans-serif; background: #ffffff;"&gt;number: One bit for the sign, 11 bits for the exponent and 52 bits for the number itself. A 52 bit number corresponds to approximately 15 significant&lt;/P&gt;&lt;P style="font-size: 13px; color: #737373; font-family: arial, verdana, sans-serif; background: #ffffff;"&gt;decimal digits. This means that QlikView can store integers up to 14 digits while preserving the exactness of the number. However, integers with more than 14 digits will be rounded to 14 significant digits. &lt;/P&gt;&lt;P style="font-size: 13px; color: #737373; font-family: arial, verdana, sans-serif; background: #ffffff;"&gt;For non-integer numbers, the situation is slightly worse. Some fractional numbers can be stored in an exact form, e.g. 0.5 and 0.25, since&lt;/P&gt;&lt;P style="font-size: 13px; color: #737373; font-family: arial, verdana, sans-serif; background: #ffffff;"&gt;they have an exact binary counterpart. But others cannot, e.g. 0.1 and 0.2, since these do not have an exact binary counterpart. As a consequence, you very often have a “rounding error” in the 14th significant digit for non-integers...&lt;/P&gt;&lt;P style="font-size: 13px; color: #737373; font-family: arial, verdana, sans-serif; background: #ffffff;"&gt;These are not errors in QlikView. And they are not errors in IEEE 754 either. Rather, they represent errors in the expectation of binary floating point&lt;/P&gt;&lt;P style="font-size: 13px; color: #737373; font-family: arial, verdana, sans-serif; background: #ffffff;"&gt;numbers. It's simply that some values cannot be exactly represented as binary numbers, so you get rounding errors. There's no way around it...except for first converting the floating point number to an integer (by multiplication), leaving no decimal part, and thereafter rounding the integer accordingly and finally converting the integer back to a float (by division)…&lt;/P&gt;&lt;P style="font-size: 13px; color: #737373; font-family: arial, verdana, sans-serif; background: #ffffff;"&gt;Normally this kind of "rounding errors" are small and usually insignificant and should in most cases not influence the result of the analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 14:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-someone-explain-this-behavior/m-p/1127030#M370900</guid>
      <dc:creator />
      <dc:date>2016-08-18T14:40:45Z</dc:date>
    </item>
  </channel>
</rss>

