<?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 Decimals in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Decimals/m-p/57466#M16019</link>
    <description>Morning!&lt;BR /&gt;
&lt;BR /&gt;
I have a number 41.2 and i want it to show as 41 removing everything after the decimal, can anyone help?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Fred</description>
    <pubDate>Thu, 29 Jul 2010 12:42:23 GMT</pubDate>
    <dc:creator>fredbell</dc:creator>
    <dc:date>2010-07-29T12:42:23Z</dc:date>
    <item>
      <title>Decimals</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decimals/m-p/57466#M16019</link>
      <description>Morning!&lt;BR /&gt;
&lt;BR /&gt;
I have a number 41.2 and i want it to show as 41 removing everything after the decimal, can anyone help?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Fred</description>
      <pubDate>Thu, 29 Jul 2010 12:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decimals/m-p/57466#M16019</guid>
      <dc:creator>fredbell</dc:creator>
      <dc:date>2010-07-29T12:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Decimals</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decimals/m-p/57467#M16020</link>
      <description>If you want to actually remove the decimal part, then the function to use is FLOOR.  If you just want to display it without a decimal, then just use a format, like&lt;BR /&gt;
FORMAT myvar 3.;</description>
      <pubDate>Thu, 29 Jul 2010 12:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decimals/m-p/57467#M16020</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-07-29T12:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Decimals</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decimals/m-p/57468#M16021</link>
      <description>Hi Duke&lt;BR /&gt;
&lt;BR /&gt;
Sorry for my lack of knowledge, how can i incorporate the FLOOR into the below code?&lt;BR /&gt;
&lt;BR /&gt;
Fred&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table TVStats as&lt;BR /&gt;
select &lt;BR /&gt;
mean(TvAverage_Speed_of_Answer__Sec_) as Tv_AvgSpeedofAnswerSec&lt;BR /&gt;
FROM Cscore.tv;&lt;BR /&gt;
quit;</description>
      <pubDate>Thu, 29 Jul 2010 13:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decimals/m-p/57468#M16021</guid>
      <dc:creator>fredbell</dc:creator>
      <dc:date>2010-07-29T13:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Decimals</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decimals/m-p/57469#M16022</link>
      <description>Hi All:&lt;BR /&gt;
&lt;BR /&gt;
Not to go off-topic, but I have a similar question.  How do I get just the mantissa of the floating-point number - other than subtracting the figure from its' integer?  I could have sworn that there was a function (like the opposite of int() ) that would do it.</description>
      <pubDate>Thu, 29 Jul 2010 14:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decimals/m-p/57469#M16022</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2010-07-29T14:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Decimals</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decimals/m-p/57470#M16023</link>
      <description>FredBell:  Just add the floor to the Mean line&lt;BR /&gt;
FLOOR(mean(TvAverage_Speed_of_Answer__Sec_)) as Tv_AvgSpeedofAnswerSec&lt;BR /&gt;
&lt;BR /&gt;
OS2 Rules:  please start a new thread.</description>
      <pubDate>Thu, 29 Jul 2010 14:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decimals/m-p/57470#M16023</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-07-29T14:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Decimals</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decimals/m-p/57471#M16024</link>
      <description>Thanks for your help Duke.&lt;BR /&gt;
&lt;BR /&gt;
Fred</description>
      <pubDate>Thu, 29 Jul 2010 23:23:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decimals/m-p/57471#M16024</guid>
      <dc:creator>fredbell</dc:creator>
      <dc:date>2010-07-29T23:23:26Z</dc:date>
    </item>
  </channel>
</rss>

