<?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: %SYSEVALF Floating Point Conditions in %IF Statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SYSEVALF-Floating-Point-Conditions-in-IF-Statement/m-p/135249#M27485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt;%sysevalf((1/&amp;amp;dsctroportion)*&amp;amp;edgecond)) resolves to &lt;/SPAN&gt;124.36923076923 when I calculate it. So the last condition is false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Oct 2014 17:39:54 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2014-10-21T17:39:54Z</dc:date>
    <item>
      <title>%SYSEVALF Floating Point Conditions in %IF Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSEVALF-Floating-Point-Conditions-in-IF-Statement/m-p/135248#M27484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get a complicated %IF condition statement to work within my macro loop. I have been able to do this in the past with floating point comparisons using %SYSEVALF, but no matter what I do it keeps evaluating as FALSE even though the variables should make it TRUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my LOG output for the condtion in question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SYMBOLGEN:&amp;nbsp; Macro variable CURSTG resolves to 3&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;SYMBOLGEN:&amp;nbsp; Macro variable DISCELIGSTRAD resolves to 121.26&lt;/P&gt;&lt;P&gt;SYMBOLGEN:&amp;nbsp; Macro variable EDGECOND resolves to 121.26&lt;/P&gt;&lt;P&gt;SYMBOLGEN:&amp;nbsp; Macro variable DISCELIGFULL resolves to 184.7&lt;/P&gt;&lt;P&gt;SYMBOLGEN:&amp;nbsp; Macro variable DSCTROPORTION resolves to 0.975&lt;/P&gt;&lt;P&gt;SYMBOLGEN:&amp;nbsp; Macro variable EDGECOND resolves to 121.26&lt;/P&gt;&lt;P&gt;MLOGIC(STAGE):&amp;nbsp; %IF condition &amp;amp;curstg eq 3 and %sysevalf(&amp;amp;disceligstrad = &amp;amp;edgecond) and %sysevalf(&amp;amp;disceligfull &amp;lt;= &lt;/P&gt;&lt;P&gt;((1/&amp;amp;dsctroportion)*&amp;amp;edgecond)) is FALSE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 16:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSEVALF-Floating-Point-Conditions-in-IF-Statement/m-p/135248#M27484</guid>
      <dc:creator>wlf211</dc:creator>
      <dc:date>2014-10-21T16:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSEVALF Floating Point Conditions in %IF Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSEVALF-Floating-Point-Conditions-in-IF-Statement/m-p/135249#M27485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: SAS Monospace;"&gt;%sysevalf((1/&amp;amp;dsctroportion)*&amp;amp;edgecond)) resolves to &lt;/SPAN&gt;124.36923076923 when I calculate it. So the last condition is false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 17:39:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSEVALF-Floating-Point-Conditions-in-IF-Statement/m-p/135249#M27485</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-10-21T17:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: %SYSEVALF Floating Point Conditions in %IF Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSEVALF-Floating-Point-Conditions-in-IF-Statement/m-p/135250#M27486</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;It should be &amp;gt;= not &amp;lt;=, I must have switched the signs as I was rewriting it (I originally had "ge", then switched it to "&amp;lt;="). It works now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 17:50:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSEVALF-Floating-Point-Conditions-in-IF-Statement/m-p/135250#M27486</guid>
      <dc:creator>wlf211</dc:creator>
      <dc:date>2014-10-21T17:50:00Z</dc:date>
    </item>
  </channel>
</rss>

