<?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: Qlik Sense how to round 0.5 down to 0 in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-how-to-round-0-5-down-to-0/m-p/58956#M3907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure but this gives the result as you needed - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Round(3.5,-1)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2018 20:56:35 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2018-02-20T20:56:35Z</dc:date>
    <item>
      <title>Qlik Sense how to round 0.5 down to 0</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-how-to-round-0-5-down-to-0/m-p/58954#M3905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working in Qlik Sense Enterprise 3.2.&amp;nbsp; I have some numbers that I need to round by a non-standard rule.&amp;nbsp; Typically, if the decimal portion of a number is &amp;gt;= 0.5, then the rule is to round up to the next whole number; else, round down.&amp;nbsp; However, I have a different rounding rule in my particular situation.&amp;nbsp; If the decimal portion of a number is &amp;lt;= 0.5, then round down; else, round up.&amp;nbsp; So, for example...&lt;/P&gt;&lt;P&gt;0.5 becomes 0&lt;/P&gt;&lt;P&gt;2.5 becomes 2 (not 3)&lt;/P&gt;&lt;P&gt;2.4 becomes 2&lt;/P&gt;&lt;P&gt;2.6 becomes 3&lt;/P&gt;&lt;P&gt;3.5 becomes 3 (not 4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I implement this rounding rule in my load script?&amp;nbsp; The round function in Qlik Sense doesn't let you control the rule (only the increment and offset), and ceiling / floor are not the rounding behavior that I want.&amp;nbsp; I'm thinking floor the original number to trim off the integer portion, implement some if-then logic on the decimal portion (returning 0 or 1), and then add the result of the if-then logic to the integer portion of the number.&amp;nbsp; But, I'm not sure if this is the best approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 20:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-how-to-round-0-5-down-to-0/m-p/58954#M3905</guid>
      <dc:creator>skyline01</dc:creator>
      <dc:date>2018-02-20T20:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense how to round 0.5 down to 0</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-how-to-round-0-5-down-to-0/m-p/58955#M3906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try like this -&lt;/P&gt;&lt;P&gt;round(0.5,-1) as ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 20:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-how-to-round-0-5-down-to-0/m-p/58955#M3906</guid>
      <dc:creator>isingh30</dc:creator>
      <dc:date>2018-02-20T20:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense how to round 0.5 down to 0</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-how-to-round-0-5-down-to-0/m-p/58956#M3907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure but this gives the result as you needed - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Round(3.5,-1)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 20:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-how-to-round-0-5-down-to-0/m-p/58956#M3907</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-20T20:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense how to round 0.5 down to 0</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-how-to-round-0-5-down-to-0/m-p/58957#M3908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about Round (x -0.1,1)&lt;/P&gt;&lt;P&gt;Simply subtract 1/10th?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 23:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-how-to-round-0-5-down-to-0/m-p/58957#M3908</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2018-02-20T23:24:36Z</dc:date>
    </item>
  </channel>
</rss>

