<?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: Format problem in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Format-problem/m-p/344047#M79034</link>
    <description>&lt;P&gt;Use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;yr = round(yr,.01);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to round up to the second fractional digit.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2017 12:38:27 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-03-24T12:38:27Z</dc:date>
    <item>
      <title>Format problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-problem/m-p/344041#M79032</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table t1 with two dates d1 and d2. I need to have the year difference in decimals (2decimals).&lt;/P&gt;&lt;P&gt;I do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;format yr 15.2;
yr= INTCK('month',d1, d2)/12;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following this, I join with another table t2 on the number of years (with two decimals).&lt;/P&gt;&lt;P&gt;But it can't match except when the year t1 has &amp;nbsp;decimals like&lt;/P&gt;&lt;P&gt;*.00&lt;/P&gt;&lt;P&gt;*.25&lt;/P&gt;&lt;P&gt;*.50&lt;/P&gt;&lt;P&gt;*.75&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't want to match when it is decimals like&lt;/P&gt;&lt;P&gt;*.08&lt;/P&gt;&lt;P&gt;*.17&lt;/P&gt;&lt;P&gt;*.33&lt;/P&gt;&lt;P&gt;*.42&lt;/P&gt;&lt;P&gt;*.58&lt;/P&gt;&lt;P&gt;*.67&lt;/P&gt;&lt;P&gt;*.83&lt;/P&gt;&lt;P&gt;*.92&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The common points of all is they are rounded to the second decimal calculations (*.33 is in fact *.33333333... whereas for table t2 it is truely *.33)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know what I have to do in order to match them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for answer.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 12:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-problem/m-p/344041#M79032</guid>
      <dc:creator>fabdu92</dc:creator>
      <dc:date>2017-03-24T12:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Format problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-problem/m-p/344047#M79034</link>
      <description>&lt;P&gt;Use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;yr = round(yr,.01);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to round up to the second fractional digit.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 12:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-problem/m-p/344047#M79034</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-03-24T12:38:27Z</dc:date>
    </item>
  </channel>
</rss>

