<?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 tens in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/round-tens/m-p/519326#M3769</link>
    <description>&lt;P&gt;Slightly different since the request is to always round down.&lt;/P&gt;
&lt;PRE&gt;data have;
input value1 value2 value3;
newval1=100* floor(value1/100);
newval2=100* floor(value2/100);
newval3=100* floor(value3/100);;
cards;
111 1499 15251
;&lt;/PRE&gt;
&lt;P&gt;unfortunately the FLOOR and CEIL functions do not have the round off precision value parameter that ROUND does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Dec 2018 00:13:16 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-12-07T00:13:16Z</dc:date>
    <item>
      <title>round tens</title>
      <link>https://communities.sas.com/t5/New-SAS-User/round-tens/m-p/519322#M3767</link>
      <description>&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;Is there a function to round &lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;tens &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;down?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;&lt;SPAN class="tlid-translation translation"&gt;example&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;&lt;SPAN class="tlid-translation translation"&gt;data&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;&lt;SPAN class="tlid-translation translation"&gt;111 1499 15251&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;&lt;SPAN class="tlid-translation translation"&gt;data I want&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;&lt;SPAN class="tlid-translation translation"&gt;100 1400 15200&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;BR /&gt;&lt;SPAN&gt;but do not using /100 and after *100 I want&amp;nbsp;if exits a&amp;nbsp;function that simplifies it please&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Dec 2018 23:49:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/round-tens/m-p/519322#M3767</guid>
      <dc:creator>Angel_Saenz</dc:creator>
      <dc:date>2018-12-06T23:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: round tens</title>
      <link>https://communities.sas.com/t5/New-SAS-User/round-tens/m-p/519323#M3768</link>
      <description>&lt;P&gt;if we use round as below we get&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;100 1500 15300&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input value1 value2 value3;
newval1=round(value1,100);
newval2=round(value2,100);
newval3=round(value3,100);
cards;
111 1499 15251
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Dec 2018 23:58:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/round-tens/m-p/519323#M3768</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2018-12-06T23:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: round tens</title>
      <link>https://communities.sas.com/t5/New-SAS-User/round-tens/m-p/519326#M3769</link>
      <description>&lt;P&gt;Slightly different since the request is to always round down.&lt;/P&gt;
&lt;PRE&gt;data have;
input value1 value2 value3;
newval1=100* floor(value1/100);
newval2=100* floor(value2/100);
newval3=100* floor(value3/100);;
cards;
111 1499 15251
;&lt;/PRE&gt;
&lt;P&gt;unfortunately the FLOOR and CEIL functions do not have the round off precision value parameter that ROUND does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 00:13:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/round-tens/m-p/519326#M3769</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-12-07T00:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: round tens</title>
      <link>https://communities.sas.com/t5/New-SAS-User/round-tens/m-p/519331#M3771</link>
      <description>&lt;P&gt;No.&amp;nbsp; Here are two algorithms. You could use PROC FCMP to make your own function, but it is probably NOT worth the effort.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  input have @@;
  test1=round(have,100);
  test2=100*int(have/100);
  test3=have-mod(have,100);
cards;
111 1499 15251
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;Obs     have    test1    test2    test3

 1       111      100      100      100
 2      1499     1500     1400     1400
 3     15251    15300    15200    15200&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Dec 2018 00:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/round-tens/m-p/519331#M3771</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-12-07T00:44:55Z</dc:date>
    </item>
  </channel>
</rss>

