<?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: Rounding problems in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rounding-problems/m-p/1704259#M451391</link>
    <description>&lt;P&gt;Please have a look at the following Design Blog post, I believe it should shed some light upon things for you:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Rounding-Errors/ba-p/1468808" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Rounding-Errors/ba-p/1468808&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The partner post is correct though, things are working as expected with the negative number, as I have run across this previously and run it by engineering, and they confirmed it is as expected behavior.&amp;nbsp; Hopefully the post above will help you better understand things, and there are some suggestions on how to better handle things too, so hopefully you may find the right solution there too in order to get what you want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2020 21:25:45 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2020-05-21T21:25:45Z</dc:date>
    <item>
      <title>Rounding problems</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problems/m-p/1697642#M451019</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I have some problems with the result of a rounding operation on a number.&lt;/P&gt;&lt;P&gt;If i put in a textbox&lt;/P&gt;&lt;P&gt;&lt;EM&gt;round(5.365,0.01)&lt;/EM&gt;. I get &lt;STRONG&gt;5.37 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Instead, if i put:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;round(-5.365,0.01).&lt;/EM&gt; I get -&lt;STRONG&gt;5.36&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I expect as result -5.37 (as with a round operation in excel) instead of -5.36.&lt;/P&gt;&lt;P&gt;Why different result?&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problems/m-p/1697642#M451019</guid>
      <dc:creator>dvugopietro</dc:creator>
      <dc:date>2024-11-16T18:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding problems</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problems/m-p/1697649#M451020</link>
      <description>&lt;P&gt;use this:&amp;nbsp; round(-5.365,-0.01)&lt;/P&gt;&lt;P&gt;you need second parameter negative to round down and not up&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 11:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problems/m-p/1697649#M451020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-29T11:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding problems</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problems/m-p/1697652#M451022</link>
      <description>&lt;P&gt;Ok. but i don't know if the number is positive or negative.&lt;/P&gt;&lt;P&gt;I should insert an if statment. However is a strange beahviour.&lt;/P&gt;&lt;P&gt;if(x&amp;gt;0,round(x,0.01),round(x,-0.01))&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 11:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problems/m-p/1697652#M451022</guid>
      <dc:creator>dvugopietro</dc:creator>
      <dc:date>2020-04-29T11:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding problems</title>
      <link>https://community.qlik.com/t5/QlikView/Rounding-problems/m-p/1704259#M451391</link>
      <description>&lt;P&gt;Please have a look at the following Design Blog post, I believe it should shed some light upon things for you:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Rounding-Errors/ba-p/1468808" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Rounding-Errors/ba-p/1468808&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The partner post is correct though, things are working as expected with the negative number, as I have run across this previously and run it by engineering, and they confirmed it is as expected behavior.&amp;nbsp; Hopefully the post above will help you better understand things, and there are some suggestions on how to better handle things too, so hopefully you may find the right solution there too in order to get what you want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 21:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rounding-problems/m-p/1704259#M451391</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-05-21T21:25:45Z</dc:date>
    </item>
  </channel>
</rss>

