<?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 macro comparison? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/macro-comparison/m-p/39072#M7924</link>
    <description>%macro asd;&lt;BR /&gt;
&lt;BR /&gt;
%let a=66.12345;&lt;BR /&gt;
%let b=100;&lt;BR /&gt;
&lt;BR /&gt;
%if &amp;amp;a &amp;lt; &amp;amp;b %then %put "True";&lt;BR /&gt;
%else %put "False";&lt;BR /&gt;
&lt;BR /&gt;
%mend asd;&lt;BR /&gt;
&lt;BR /&gt;
%asd;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
if i executed this code, instead of getting true, i am getting false. why?&lt;BR /&gt;
i am expecting output as true.&lt;BR /&gt;
&lt;BR /&gt;
how i can get true as output?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
help me...&lt;BR /&gt;
&lt;BR /&gt;
pavan.</description>
    <pubDate>Thu, 14 Aug 2008 10:24:38 GMT</pubDate>
    <dc:creator>Pavan_SAS</dc:creator>
    <dc:date>2008-08-14T10:24:38Z</dc:date>
    <item>
      <title>macro comparison?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-comparison/m-p/39072#M7924</link>
      <description>%macro asd;&lt;BR /&gt;
&lt;BR /&gt;
%let a=66.12345;&lt;BR /&gt;
%let b=100;&lt;BR /&gt;
&lt;BR /&gt;
%if &amp;amp;a &amp;lt; &amp;amp;b %then %put "True";&lt;BR /&gt;
%else %put "False";&lt;BR /&gt;
&lt;BR /&gt;
%mend asd;&lt;BR /&gt;
&lt;BR /&gt;
%asd;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
if i executed this code, instead of getting true, i am getting false. why?&lt;BR /&gt;
i am expecting output as true.&lt;BR /&gt;
&lt;BR /&gt;
how i can get true as output?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
help me...&lt;BR /&gt;
&lt;BR /&gt;
pavan.</description>
      <pubDate>Thu, 14 Aug 2008 10:24:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-comparison/m-p/39072#M7924</guid>
      <dc:creator>Pavan_SAS</dc:creator>
      <dc:date>2008-08-14T10:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: macro comparison?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-comparison/m-p/39073#M7925</link>
      <description>To do a comparison with floating point numbers, you have to use %sysevalf function:&lt;BR /&gt;
&lt;BR /&gt;
%if &lt;B&gt;%sysevalf&lt;/B&gt;(&amp;amp;a &amp;lt; &amp;amp;b) %then %put "True";&lt;BR /&gt;
%else %put "False";&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Linus</description>
      <pubDate>Thu, 14 Aug 2008 10:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-comparison/m-p/39073#M7925</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-08-14T10:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: macro comparison?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-comparison/m-p/39074#M7926</link>
      <description>thanks linus !</description>
      <pubDate>Thu, 14 Aug 2008 11:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-comparison/m-p/39074#M7926</guid>
      <dc:creator>Pavan_SAS</dc:creator>
      <dc:date>2008-08-14T11:11:38Z</dc:date>
    </item>
  </channel>
</rss>

