<?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: Function to count the decimal places in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Function-to-count-the-decimal-places/m-p/98887#M257954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data sample;&lt;BR /&gt;input count;&lt;BR /&gt;datalines;&lt;BR /&gt;1.99999&lt;BR /&gt;2.0005&lt;BR /&gt;99.0001&lt;BR /&gt;1023.9999999&lt;BR /&gt;104&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data smpl2;&lt;BR /&gt;set sample;&lt;BR /&gt;cc=(scan(count,2,"."));&lt;BR /&gt;if cc="" then dcount=0;&lt;BR /&gt; else dcount=length(cc);&lt;BR /&gt;drop cc;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jun 2013 06:45:32 GMT</pubDate>
    <dc:creator>sureshv</dc:creator>
    <dc:date>2013-06-07T06:45:32Z</dc:date>
    <item>
      <title>Function to count the decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-to-count-the-decimal-places/m-p/98886#M257953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a function in SAS which can count decimal places in a numeric value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone aware of any such function ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Kaushal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 05:45:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-to-count-the-decimal-places/m-p/98886#M257953</guid>
      <dc:creator>Kaushal</dc:creator>
      <dc:date>2013-06-07T05:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Function to count the decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-to-count-the-decimal-places/m-p/98887#M257954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data sample;&lt;BR /&gt;input count;&lt;BR /&gt;datalines;&lt;BR /&gt;1.99999&lt;BR /&gt;2.0005&lt;BR /&gt;99.0001&lt;BR /&gt;1023.9999999&lt;BR /&gt;104&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data smpl2;&lt;BR /&gt;set sample;&lt;BR /&gt;cc=(scan(count,2,"."));&lt;BR /&gt;if cc="" then dcount=0;&lt;BR /&gt; else dcount=length(cc);&lt;BR /&gt;drop cc;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 06:45:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-to-count-the-decimal-places/m-p/98887#M257954</guid>
      <dc:creator>sureshv</dc:creator>
      <dc:date>2013-06-07T06:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Function to count the decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-to-count-the-decimal-places/m-p/98888#M257955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds, Kaushal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 07:55:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-to-count-the-decimal-places/m-p/98888#M257955</guid>
      <dc:creator>Kaushal</dc:creator>
      <dc:date>2013-06-07T07:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Function to count the decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-to-count-the-decimal-places/m-p/98889#M257956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;reduce code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data smpl2;&lt;/P&gt;&lt;P&gt;set sample;&lt;/P&gt;&lt;P&gt;cc=lengthn(scan(count,2,"."));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 08:25:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-to-count-the-decimal-places/m-p/98889#M257956</guid>
      <dc:creator>sureshv</dc:creator>
      <dc:date>2013-06-07T08:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Function to count the decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-to-count-the-decimal-places/m-p/271757#M257957</link>
      <description>&lt;P&gt;Sureshv: Thank you for this and I used it today. In my search I was&amp;nbsp;surprised that SAS doesn't have a function that would return the decimal precision and&amp;nbsp;that a conversion to text and then a count was required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 16:08:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-to-count-the-decimal-places/m-p/271757#M257957</guid>
      <dc:creator>SUDOKU</dc:creator>
      <dc:date>2016-05-19T16:08:03Z</dc:date>
    </item>
  </channel>
</rss>

