<?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 up function to nearest decimal in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Round-up-function-to-nearest-decimal/m-p/387914#M277366</link>
    <description>&lt;P&gt;If you are familiar with CEIL and FLOOR,&amp;nbsp;you can probably do this yourself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, multiply by 1000.&amp;nbsp; Then apply CEIL or FLOOR (might depend on whether the number is positive or negative).&amp;nbsp;&amp;nbsp;Then divide by 1000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be careful when you say rounding up or rounding down.&amp;nbsp; To the mathematician, -0.2011 to -0.202 is rounding down.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2017 19:46:16 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-08-14T19:46:16Z</dc:date>
    <item>
      <title>Round up function to nearest decimal</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-up-function-to-nearest-decimal/m-p/387904#M277364</link>
      <description>&lt;P&gt;I'm trying to perform a roundup function to mimic the function in Excel where I want to round up to the nearest decimal.&lt;/P&gt;&lt;P&gt;For example I would like to round -0.2011 to -.202&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried round, ceil, and floor but I can't seem to get it to round at the decimal level, only the integer level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 18:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-up-function-to-nearest-decimal/m-p/387904#M277364</guid>
      <dc:creator>abcda</dc:creator>
      <dc:date>2017-08-14T18:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Round up function to nearest decimal</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-up-function-to-nearest-decimal/m-p/387913#M277365</link>
      <description>&lt;PRE&gt;newvalue=round(value+0.0005,0.001);&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;newvalue=ceil(1000*value)/1000;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 18:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-up-function-to-nearest-decimal/m-p/387913#M277365</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-08-14T18:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Round up function to nearest decimal</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Round-up-function-to-nearest-decimal/m-p/387914#M277366</link>
      <description>&lt;P&gt;If you are familiar with CEIL and FLOOR,&amp;nbsp;you can probably do this yourself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, multiply by 1000.&amp;nbsp; Then apply CEIL or FLOOR (might depend on whether the number is positive or negative).&amp;nbsp;&amp;nbsp;Then divide by 1000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be careful when you say rounding up or rounding down.&amp;nbsp; To the mathematician, -0.2011 to -0.202 is rounding down.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 19:46:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Round-up-function-to-nearest-decimal/m-p/387914#M277366</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-08-14T19:46:16Z</dc:date>
    </item>
  </channel>
</rss>

