<?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 variable assigned to number has value NaN in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/variable-assigned-to-number-has-value-NaN/m-p/1100474#M126641</link>
    <description>&lt;P&gt;Hello Fortran fraternity&lt;/P&gt;

&lt;P&gt;I assign a real variable to zero. but when i debug the program, I see that variable value as NaN without any operation having taken place. what could be the reason and what is the remedy. i am using visual studio 8.&lt;/P&gt;

&lt;P&gt;Advise please.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Jan 2016 16:28:36 GMT</pubDate>
    <dc:creator>Sirat_S_</dc:creator>
    <dc:date>2016-01-23T16:28:36Z</dc:date>
    <item>
      <title>variable assigned to number has value NaN</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/variable-assigned-to-number-has-value-NaN/m-p/1100474#M126641</link>
      <description>&lt;P&gt;Hello Fortran fraternity&lt;/P&gt;

&lt;P&gt;I assign a real variable to zero. but when i debug the program, I see that variable value as NaN without any operation having taken place. what could be the reason and what is the remedy. i am using visual studio 8.&lt;/P&gt;

&lt;P&gt;Advise please.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 16:28:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/variable-assigned-to-number-has-value-NaN/m-p/1100474#M126641</guid>
      <dc:creator>Sirat_S_</dc:creator>
      <dc:date>2016-01-23T16:28:36Z</dc:date>
    </item>
    <item>
      <title>There must be more to this</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/variable-assigned-to-number-has-value-NaN/m-p/1100475#M126642</link>
      <description>&lt;P&gt;There must be more to this than what you say. &amp;nbsp;For example, if I create the following&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;PROGRAM MAIN

REAL :: A

A = 0

END PROGRAM MAIN&lt;/PRE&gt;

&lt;P&gt;and run it in debug, I get 0 for A. &amp;nbsp;NaN is typically generated in REAL values as 0.0 / 0.0 or 0.0 times infinity. &amp;nbsp;There must be something along these lines generating the value.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 16:55:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/variable-assigned-to-number-has-value-NaN/m-p/1100475#M126642</guid>
      <dc:creator>NotThatItMatters</dc:creator>
      <dc:date>2016-01-23T16:55:07Z</dc:date>
    </item>
    <item>
      <title>Or you are debugging a</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/variable-assigned-to-number-has-value-NaN/m-p/1100476#M126643</link>
      <description>&lt;P&gt;Or you are debugging a program with optimizations and the variable may live in a register or in memory dependent upon where the break point is located. The debugger will display the memory location only. You will&amp;nbsp;not see this behavior in Debug build (with no optimizations). Also optimization may eliminate statements deemed unnecessary&lt;/P&gt;

&lt;P&gt;A=0.0&lt;BR /&gt;
	{ A not used between above statement and next statement }&lt;BR /&gt;
	A=1.0&lt;/P&gt;

&lt;P&gt;Optimization, with the above qualification, can eliminate the A=0.0&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 18:17:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/variable-assigned-to-number-has-value-NaN/m-p/1100476#M126643</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2016-01-23T18:17:00Z</dc:date>
    </item>
  </channel>
</rss>

