<?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: excel round equation in sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/excel-round-equation-in-sas/m-p/797109#M255849</link>
    <description>&lt;P&gt;Did you check how both system handle rounding of negative numbers?&lt;/P&gt;
&lt;P&gt;You could make you own test data to see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that does not provide an answer than check the individual pieces.&amp;nbsp; If you are adding enough numbers the sum of small differences in each could result in values to slip from one side of the up/down dividing line for rounding.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 22:41:10 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-02-17T22:41:10Z</dc:date>
    <item>
      <title>excel round equation in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-round-equation-in-sas/m-p/797104#M255845</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have following equation in excel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;=ROUND(((SUM(O206+Q206+S206+U206+W206+Y206+AA206+AC206+AE206+AG206+AI206+AK206)-BK206)/11),0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, Column "O" to Column "AK206" are my dmd data&lt;/P&gt;&lt;P&gt;Column "BK" is my maxtwelve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use following equation in sas.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;round = round((sum(of Dmd1-Dmd12)-maxtwelve)/11);&lt;/PRE&gt;&lt;P&gt;In some incident, I am not getting same result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if Excel produce -66.45454545, Excel Output is -66. Whereas SAS output is -67.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;int = int((sum(of Dmd1-Dmd12)-maxtwelve)/11);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In some incident, I am not getting same result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if Excel produce -463.5454545, Excel Output is -464. Whereas SAS output is -463.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 22:13:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-round-equation-in-sas/m-p/797104#M255845</guid>
      <dc:creator>dht115</dc:creator>
      <dc:date>2022-02-17T22:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: excel round equation in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-round-equation-in-sas/m-p/797109#M255849</link>
      <description>&lt;P&gt;Did you check how both system handle rounding of negative numbers?&lt;/P&gt;
&lt;P&gt;You could make you own test data to see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that does not provide an answer than check the individual pieces.&amp;nbsp; If you are adding enough numbers the sum of small differences in each could result in values to slip from one side of the up/down dividing line for rounding.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 22:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-round-equation-in-sas/m-p/797109#M255849</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-02-17T22:41:10Z</dc:date>
    </item>
  </channel>
</rss>

