<?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: Strip from decimal to right from a numeric field in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Strip-from-decimal-to-right-from-a-numeric-field/m-p/239613#M17225</link>
    <description>&lt;P&gt;Remember that the floor function gives you the next lower number, so 3.1 yields 3 and -3.1 yields -4.&amp;nbsp; The int function will give you 3 and -3 respectively.&amp;nbsp; So, choose the one that meets your specific needs.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2015 20:10:26 GMT</pubDate>
    <dc:creator>advoss</dc:creator>
    <dc:date>2015-12-16T20:10:26Z</dc:date>
    <item>
      <title>Strip from decimal to right from a numeric field</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Strip-from-decimal-to-right-from-a-numeric-field/m-p/239438#M17211</link>
      <description>&lt;P&gt;In need to round down to the nearest whole number or simply strip everything to the right of the decimal in a numeric field.&amp;nbsp; Example:&lt;/P&gt;
&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="128"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" span="2" width="64" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD style="height: 14.4pt; width: 48pt;" height="19" width="64"&gt;have&lt;/TD&gt;
&lt;TD style="width: 48pt;" width="64"&gt;need&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD style="height: 14.4pt;" align="right" height="19"&gt;1.2&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD style="height: 14.4pt;" align="right" height="19"&gt;0.1&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD style="height: 14.4pt;" align="right" height="19"&gt;10&lt;/TD&gt;
&lt;TD align="right"&gt;10&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 15 Dec 2015 21:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Strip-from-decimal-to-right-from-a-numeric-field/m-p/239438#M17211</guid>
      <dc:creator>carmendee</dc:creator>
      <dc:date>2015-12-15T21:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Strip from decimal to right from a numeric field</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Strip-from-decimal-to-right-from-a-numeric-field/m-p/239440#M17212</link>
      <description>&lt;P&gt;Use the FLOOR function to round down to the next integer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data a;
  input have;
  need=floor(have);
datalines;&lt;BR /&gt;1.2&lt;BR /&gt;0.1&lt;BR /&gt;10
123.456
34
5.1111
7.68
10.98
-3.1
-19.0
-4.8
;

proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 21:33:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Strip-from-decimal-to-right-from-a-numeric-field/m-p/239440#M17212</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2015-12-15T21:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Strip from decimal to right from a numeric field</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Strip-from-decimal-to-right-from-a-numeric-field/m-p/239613#M17225</link>
      <description>&lt;P&gt;Remember that the floor function gives you the next lower number, so 3.1 yields 3 and -3.1 yields -4.&amp;nbsp; The int function will give you 3 and -3 respectively.&amp;nbsp; So, choose the one that meets your specific needs.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 20:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Strip-from-decimal-to-right-from-a-numeric-field/m-p/239613#M17225</guid>
      <dc:creator>advoss</dc:creator>
      <dc:date>2015-12-16T20:10:26Z</dc:date>
    </item>
  </channel>
</rss>

