<?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 issue. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Rounding-issue/m-p/291429#M60376</link>
    <description>&lt;P&gt;Calculate your summaries (sums, etc.) at full precision.Round only at the end, for display purposes.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Aug 2016 20:19:57 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-08-12T20:19:57Z</dc:date>
    <item>
      <title>Rounding issue.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rounding-issue/m-p/291281#M60356</link>
      <description>&lt;P&gt;Hi Guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing issue with rounding issue. In my SAS program, we need to calculate each store perfomance in percenage based on sales, commissoin etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this calcuated performace percentage is sent to another system which will post to portal. But the another system is rejecting it because sum of all performace percentage is exceeding 100% (i.e. 100.02). I believe this is due to rounding.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone please suggesst how I can&amp;nbsp;resolve this rounding issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used ROUND(PERCENT,0.01) and also defined percentage variable as 16.2 (format PVAR 16.2 &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your help in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 14:51:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rounding-issue/m-p/291281#M60356</guid>
      <dc:creator>gskn</dc:creator>
      <dc:date>2016-08-12T14:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding issue.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rounding-issue/m-p/291306#M60367</link>
      <description>&lt;P&gt;Please show how you are generating the data sent to "other system". To force a total of percentages is going to take a little more work than rounding a variable as you may round down or up to many times and end up with less than 100 or more than 100.&lt;/P&gt;
&lt;P&gt;So will need to do something that checks the total of the percentages. Note that the report procedures may not be adequate.&lt;/P&gt;
&lt;P&gt;There are also some potential issues with storage precision on both ends of the process in that some decimal values don't quite have exact binary storage.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 15:53:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rounding-issue/m-p/291306#M60367</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-12T15:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding issue.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rounding-issue/m-p/291429#M60376</link>
      <description>&lt;P&gt;Calculate your summaries (sums, etc.) at full precision.Round only at the end, for display purposes.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 20:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rounding-issue/m-p/291429#M60376</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-08-12T20:19:57Z</dc:date>
    </item>
  </channel>
</rss>

