<?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 checking for NaN in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/checking-for-NaN/m-p/945979#M18290</link>
    <description>I have a program that sometimes generates a NaN value.  I want to check for this in order to react to it, and I was trying to use the test 'if (A /= A) then'  . . .   &lt;BR /&gt;I tried this first in an interactive program that compiles as a QuickWin Application, and it worked just fine - when A = NaN the if condition evaluated to true.  &lt;BR /&gt;But then when I switched to a batch program that compiles as a Fortran Console Application, it stopped working.   No matter what the value of A, the if condition always evaluates to false.  &lt;BR /&gt;The compiler options on the two projects should be identical, including having optimization turned off.  Can anyone tell me what the difference between the two is, and why I can't use this test in the Fortran Console Application project?</description>
    <pubDate>Sat, 07 Apr 2001 05:57:22 GMT</pubDate>
    <dc:creator>jltate</dc:creator>
    <dc:date>2001-04-07T05:57:22Z</dc:date>
    <item>
      <title>checking for NaN</title>
      <link>https://community.intel.com/t5/Software-Archive/checking-for-NaN/m-p/945979#M18290</link>
      <description>I have a program that sometimes generates a NaN value.  I want to check for this in order to react to it, and I was trying to use the test 'if (A /= A) then'  . . .   &lt;BR /&gt;I tried this first in an interactive program that compiles as a QuickWin Application, and it worked just fine - when A = NaN the if condition evaluated to true.  &lt;BR /&gt;But then when I switched to a batch program that compiles as a Fortran Console Application, it stopped working.   No matter what the value of A, the if condition always evaluates to false.  &lt;BR /&gt;The compiler options on the two projects should be identical, including having optimization turned off.  Can anyone tell me what the difference between the two is, and why I can't use this test in the Fortran Console Application project?</description>
      <pubDate>Sat, 07 Apr 2001 05:57:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/checking-for-NaN/m-p/945979#M18290</guid>
      <dc:creator>jltate</dc:creator>
      <dc:date>2001-04-07T05:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: checking for NaN</title>
      <link>https://community.intel.com/t5/Software-Archive/checking-for-NaN/m-p/945980#M18291</link>
      <description>According to the IEEE spec, a NaN is supposed to compare as "not equal" to everything, including another NaN.  I know we've fixed some problems in this regard in more recent versions.&lt;BR /&gt;&lt;BR /&gt;You want to use the ISNAN intrinsic instead.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sat, 07 Apr 2001 10:24:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/checking-for-NaN/m-p/945980#M18291</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-04-07T10:24:34Z</dc:date>
    </item>
  </channel>
</rss>

