<?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: Round function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Round-function/m-p/373087#M89245</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/144104"&gt;@vinod4842&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I WANT TO CHANGE THE CASH_TURNOVER &amp;nbsp;VARIABLE FIRST VALUE TO 3.58, WHAT CAN I DO WITH THAT ROUND OPTION&lt;/P&gt;
&lt;P&gt;I GETTING SO MANY GARBAGE VALUE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;WHAT'S THE RULE? WHY IS IT 3.58 AND NOT 3.59, OR 3.78?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jul 2017 19:51:16 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-07-04T19:51:16Z</dc:date>
    <item>
      <title>Round function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function/m-p/373080#M89241</link>
      <description>&lt;P&gt;value=round(3.340422,1.5);&lt;/P&gt;
&lt;P&gt;its not round to 3.58 .&lt;/P&gt;
&lt;P&gt;could you plz help me by use &amp;nbsp;round to get around 3.58 value in that statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 19:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function/m-p/373080#M89241</guid>
      <dc:creator>vinod4842</dc:creator>
      <dc:date>2017-07-04T19:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Round function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function/m-p/373081#M89242</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/144104"&gt;@vinod4842&lt;/a&gt;&amp;nbsp;Note that I've modified your subject line to Round as it's slightly more descriptive than 'SAS'. Please recall that our goal on here is to both answer your question and future users.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 19:40:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function/m-p/373081#M89242</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-04T19:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Round function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function/m-p/373083#M89243</link>
      <description>&lt;P&gt;Note that the second parameter is supposed to be the multiple you want. Ie you want 3.34... rounded to the nearest 1.5.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Multiples of 1.5 are 0, 1.5, 3, 4.5 so the result will be 3.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want values of 3.58 you need to have some multiple of that number. So dividing it by 2, gives 1.79.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Multiples of 1.79 are 0, 1.79, 3.58 and 3.34 will round to 3.58.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I'm having a hard time seeing how this is actually what you would want. But it will answer the question you've asked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;X = round(3.340422, 1.79);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Jul 2017 19:48:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function/m-p/373083#M89243</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-04T19:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Round function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function/m-p/373085#M89244</link>
      <description>&lt;P&gt;data ds;&lt;/P&gt;&lt;P&gt;infile datalines;&lt;/P&gt;&lt;P&gt;input ID&amp;nbsp;&lt;SPAN&gt;CASH_TURNOVER &amp;nbsp;COUNTRY;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CASH_TURNOVER=round(CASH_TURNOVER,);&lt;/P&gt;&lt;P&gt;DATALINES;&lt;/P&gt;&lt;P&gt;702272&amp;nbsp;3.340422 IND&lt;/P&gt;&lt;P&gt;705651&amp;nbsp;2.371976 IND&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;I WANT TO CHANGE THE CASH_TURNOVER &amp;nbsp;VARIABLE FIRST VALUE TO 3.58, WHAT CAN I DO WITH THAT ROUND OPTION&lt;/P&gt;&lt;P&gt;I GETTING SO MANY GARBAGE VALUE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 19:49:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function/m-p/373085#M89244</guid>
      <dc:creator>vinod4842</dc:creator>
      <dc:date>2017-07-04T19:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Round function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function/m-p/373087#M89245</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/144104"&gt;@vinod4842&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I WANT TO CHANGE THE CASH_TURNOVER &amp;nbsp;VARIABLE FIRST VALUE TO 3.58, WHAT CAN I DO WITH THAT ROUND OPTION&lt;/P&gt;
&lt;P&gt;I GETTING SO MANY GARBAGE VALUE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;WHAT'S THE RULE? WHY IS IT 3.58 AND NOT 3.59, OR 3.78?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 19:51:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function/m-p/373087#M89245</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-04T19:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Round function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-function/m-p/373089#M89246</link>
      <description>thanku very much reeza&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Jul 2017 19:52:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-function/m-p/373089#M89246</guid>
      <dc:creator>vinod4842</dc:creator>
      <dc:date>2017-07-04T19:52:52Z</dc:date>
    </item>
  </channel>
</rss>

