<?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: Issue with rounding in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-rounding/m-p/667522#M242758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please review this post&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/12/17/rounding-errors" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/12/17/rounding-errors"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/12/17/rounding-errors&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Aug 2014 03:53:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-08-28T03:53:21Z</dc:date>
    <item>
      <title>Issue with rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-rounding/m-p/667521#M242757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Qlikview v11.20.12451.0 SR7.&lt;/P&gt;&lt;P&gt;I'm having some trouble with numbers getting rounded down instead of up. (eg. 0.15 rounded to 0.1 instead of 0.2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue can be observed by the following steps:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;1. Loading an inline value of 0.15&lt;/P&gt;&lt;P&gt;[Data]:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[data&lt;BR /&gt;0.15]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&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;2. Reload and then create either of the following expressions:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'#,##0.0') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; =&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;round&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0.1) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. 0.1 will be shown instead of 0.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. However if '0.15' is used in place of '&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;', the figure will show correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a bug with rounding loaded data? Currently I'm working around it by multiplying my values by 1.0000000001.&lt;/P&gt;&lt;P&gt;Would appreciate any help, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 01:53:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-rounding/m-p/667521#M242757</guid>
      <dc:creator />
      <dc:date>2014-08-28T01:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-rounding/m-p/667522#M242758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please review this post&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/12/17/rounding-errors" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/12/17/rounding-errors"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/12/17/rounding-errors&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 03:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-rounding/m-p/667522#M242758</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-28T03:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-rounding/m-p/667523#M242759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The usual rounding rule is that if it is neglected figure is 5 or greater than 5, a drive to the previous position is added, if the figure is discarded is less than 5, the previous position is unchanged. &lt;/P&gt;&lt;P&gt;So, if what you want is that 0.15 is used as 0.1 instead of 0.2 so you should do is use is the floor function which rounds you down. &lt;/P&gt;&lt;P&gt;You have these options: &lt;/P&gt;&lt;P&gt;ceil (0.15, 0.1) = 0.2 &lt;/P&gt;&lt;P&gt;floor (0.15, 0.1) = 0.1 &lt;/P&gt;&lt;P&gt;round (0.15, 0.1) = 0.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 04:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-rounding/m-p/667523#M242759</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-08-28T04:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-rounding/m-p/667524#M242760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks jsaradhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the post it seems that the hexadecimal representation results in the number not being the same as the one which was originally loaded when converted back to decimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence, 0.15 when converted to hex and then back to dec would give a value of 0.149999999999... instead of 0.15, resulting in the rounding issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm unable to solve the issue though, as I cannot convert all the numbers to integers in my application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 06:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-rounding/m-p/667524#M242760</guid>
      <dc:creator />
      <dc:date>2014-08-28T06:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-rounding/m-p/667525#M242761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you misunderstood me, what I want is the usual rounding rule.&lt;/P&gt;&lt;P&gt;Currently what I'm getting is: round(0.15,0.1)=0.1; which is unexpected as I wanted the result to be 0.2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 06:12:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-rounding/m-p/667525#M242761</guid>
      <dc:creator />
      <dc:date>2014-08-28T06:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-rounding/m-p/667526#M242762</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;Looks like a bug&lt;/P&gt;&lt;P&gt;It works only if loaded data has more than 2 decimals&lt;/P&gt;&lt;P&gt;[Data]:&lt;/P&gt;&lt;P&gt;load &lt;STRONG&gt;data&amp;amp;'1' as data&lt;/STRONG&gt; inline&lt;/P&gt;&lt;P&gt;[data&lt;/P&gt;&lt;P&gt;0.15&lt;/P&gt;&lt;P&gt;0.152];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;adding a 1 at the end doesn't impact any problem with the rounding number, but it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 06:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-rounding/m-p/667526#M242762</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-08-28T06:27:33Z</dc:date>
    </item>
  </channel>
</rss>

