<?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: How to truncate values after decimal ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-truncate-values-after-decimal/m-p/203149#M37866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you need to round the value.&amp;nbsp; There are several options:&lt;/P&gt;&lt;P&gt;floor(value) = takes the minimum e.g. 13.265 becomes 13&lt;/P&gt;&lt;P&gt;ceil(value) = takes the maximum e.g 13.265 becomes 14&lt;/P&gt;&lt;P&gt;Then ther's the round() function: &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245942.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245942.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many other functions for working with numbers (int() is another).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2015 10:40:10 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-03-17T10:40:10Z</dc:date>
    <item>
      <title>How to truncate values after decimal ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-truncate-values-after-decimal/m-p/203148#M37865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to remove the values after decimal places. For ex -&lt;/P&gt;&lt;P&gt;13.265 should become 13&lt;/P&gt;&lt;P&gt;-12.514 should become -12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nikunj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 10:32:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-truncate-values-after-decimal/m-p/203148#M37865</guid>
      <dc:creator>nikunjgattani</dc:creator>
      <dc:date>2015-03-17T10:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate values after decimal ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-truncate-values-after-decimal/m-p/203149#M37866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you need to round the value.&amp;nbsp; There are several options:&lt;/P&gt;&lt;P&gt;floor(value) = takes the minimum e.g. 13.265 becomes 13&lt;/P&gt;&lt;P&gt;ceil(value) = takes the maximum e.g 13.265 becomes 14&lt;/P&gt;&lt;P&gt;Then ther's the round() function: &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245942.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245942.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many other functions for working with numbers (int() is another).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 10:40:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-truncate-values-after-decimal/m-p/203149#M37866</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-03-17T10:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate values after decimal ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-truncate-values-after-decimal/m-p/203150#M37867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use round function ex: round(variable_name,2) else use formats.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 10:42:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-truncate-values-after-decimal/m-p/203150#M37867</guid>
      <dc:creator>Vish33</dc:creator>
      <dc:date>2015-03-17T10:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate values after decimal ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-truncate-values-after-decimal/m-p/203151#M37868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the integer function: Truncated_Variabel=Int(Variable);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 11:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-truncate-values-after-decimal/m-p/203151#M37868</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2015-03-17T11:08:54Z</dc:date>
    </item>
  </channel>
</rss>

