<?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: Floating point accuracy in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Floating-point-accuracy/m-p/943318#M17628</link>
    <description>Be sure to read our next newsletter issue, which should be out soon - sent to registered users.  It has an article that covers this topic.&lt;BR /&gt;&lt;BR /&gt;First of all, when you say 1.1*11.0, that's a single-precision expression.  You should say 1.1D0*11.0D0 instead.  Single precision is typically good to 6-7 significant decimal digits - you got 8.&lt;BR /&gt;&lt;BR /&gt;Double precision (REAL*8) is good to about 15 decimal digits, you got 16.  The value 12.1 is not exactly representable in binary floating point.&lt;BR /&gt;&lt;BR /&gt;You should display your results to fewer significant digits, which will tend to give you results that look closer to what you want.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
    <pubDate>Tue, 20 Mar 2001 21:20:20 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2001-03-20T21:20:20Z</dc:date>
    <item>
      <title>Floating point accuracy</title>
      <link>https://community.intel.com/t5/Software-Archive/Floating-point-accuracy/m-p/943315#M17625</link>
      <description>I defined a variable of data type REAL(8), say R8. Assign an arithmetic expression to it (R8 = 1.1 * 11.0). The result I got was 12.1000002622604370 not 12.1000000000000000. Is there any option can be set for compiling.</description>
      <pubDate>Tue, 20 Mar 2001 16:01:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Floating-point-accuracy/m-p/943315#M17625</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-03-20T16:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Floating point accuracy</title>
      <link>https://community.intel.com/t5/Software-Archive/Floating-point-accuracy/m-p/943316#M17626</link>
      <description>Project / Settings... / Fortran / Fortran Data -- Change "Default Real Kind" to "8", OR simply write R8 = 1.1D0 * 11.0D0 instead. &lt;BR /&gt; &lt;BR /&gt;Sabalan.</description>
      <pubDate>Tue, 20 Mar 2001 18:11:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Floating-point-accuracy/m-p/943316#M17626</guid>
      <dc:creator>sabalan</dc:creator>
      <dc:date>2001-03-20T18:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Floating point accuracy</title>
      <link>https://community.intel.com/t5/Software-Archive/Floating-point-accuracy/m-p/943317#M17627</link>
      <description>I try that, but it gives me  12.1000000000000014. Is there any way that can gives actually 12.1000000000000000 or 12.1?</description>
      <pubDate>Tue, 20 Mar 2001 18:35:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Floating-point-accuracy/m-p/943317#M17627</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-03-20T18:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Floating point accuracy</title>
      <link>https://community.intel.com/t5/Software-Archive/Floating-point-accuracy/m-p/943318#M17628</link>
      <description>Be sure to read our next newsletter issue, which should be out soon - sent to registered users.  It has an article that covers this topic.&lt;BR /&gt;&lt;BR /&gt;First of all, when you say 1.1*11.0, that's a single-precision expression.  You should say 1.1D0*11.0D0 instead.  Single precision is typically good to 6-7 significant decimal digits - you got 8.&lt;BR /&gt;&lt;BR /&gt;Double precision (REAL*8) is good to about 15 decimal digits, you got 16.  The value 12.1 is not exactly representable in binary floating point.&lt;BR /&gt;&lt;BR /&gt;You should display your results to fewer significant digits, which will tend to give you results that look closer to what you want.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Tue, 20 Mar 2001 21:20:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Floating-point-accuracy/m-p/943318#M17628</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-03-20T21:20:20Z</dc:date>
    </item>
  </channel>
</rss>

