<?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 need to round a decimal to nearest value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/need-to-round-a-decimal-to-nearest-value/m-p/613442#M179145</link>
    <description>&lt;P&gt;Dear experts ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to round the value&amp;nbsp;4.7619047619 to &lt;STRONG&gt;4.8 , I used&amp;nbsp; round(Percent1,1.0); and also tried with ceil function&amp;nbsp;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I am getting the value 5 instead of 4.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any simple technique to tackle this simple problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ambadi007&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Dec 2019 16:57:41 GMT</pubDate>
    <dc:creator>ambadi007</dc:creator>
    <dc:date>2019-12-22T16:57:41Z</dc:date>
    <item>
      <title>need to round a decimal to nearest value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-to-round-a-decimal-to-nearest-value/m-p/613442#M179145</link>
      <description>&lt;P&gt;Dear experts ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to round the value&amp;nbsp;4.7619047619 to &lt;STRONG&gt;4.8 , I used&amp;nbsp; round(Percent1,1.0); and also tried with ceil function&amp;nbsp;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I am getting the value 5 instead of 4.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any simple technique to tackle this simple problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ambadi007&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2019 16:57:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-to-round-a-decimal-to-nearest-value/m-p/613442#M179145</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2019-12-22T16:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: need to round a decimal to nearest value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-to-round-a-decimal-to-nearest-value/m-p/613443#M179146</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data w;
have=4.7619047619;
want=round(have,0.1);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76823"&gt;@ambadi007&lt;/a&gt;&amp;nbsp; &amp;nbsp;Your objective is to round to the nearest 10th and not the whole number, so the above should meet your needs i think&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2019 17:07:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-to-round-a-decimal-to-nearest-value/m-p/613443#M179146</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-12-22T17:07:16Z</dc:date>
    </item>
  </channel>
</rss>

