<?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 wrong formula in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-formula/m-p/3054562#M719161</link>
    <description>Tried some maths like this:&lt;BR /&gt;x1 = ((x1 + k / x1) * 0.5);&lt;BR /&gt;x1 = ((x1 + k / x1) / 2.0);&lt;BR /&gt;where x1 and k are float and x1 = 1.0, k = 4.0;&lt;BR /&gt;The first formular gives nan, the second works.&lt;BR /&gt;&lt;BR /&gt;Is it a compiler error?&lt;BR /&gt;&lt;BR /&gt;what /opt/ansic/bin/cc gives:&lt;BR /&gt;cc:&lt;BR /&gt;LINT B.11.11.06 CXREF B.11.11.06&lt;BR /&gt;HP92453-01 B.11.11.06 HP C Compiler&lt;BR /&gt;$ Sep 8 2000 23:13:51 $&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Werner</description>
    <pubDate>Fri, 22 Aug 2003 05:12:30 GMT</pubDate>
    <dc:creator>Werner Rips</dc:creator>
    <dc:date>2003-08-22T05:12:30Z</dc:date>
    <item>
      <title>wrong formula</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-formula/m-p/3054562#M719161</link>
      <description>Tried some maths like this:&lt;BR /&gt;x1 = ((x1 + k / x1) * 0.5);&lt;BR /&gt;x1 = ((x1 + k / x1) / 2.0);&lt;BR /&gt;where x1 and k are float and x1 = 1.0, k = 4.0;&lt;BR /&gt;The first formular gives nan, the second works.&lt;BR /&gt;&lt;BR /&gt;Is it a compiler error?&lt;BR /&gt;&lt;BR /&gt;what /opt/ansic/bin/cc gives:&lt;BR /&gt;cc:&lt;BR /&gt;LINT B.11.11.06 CXREF B.11.11.06&lt;BR /&gt;HP92453-01 B.11.11.06 HP C Compiler&lt;BR /&gt;$ Sep 8 2000 23:13:51 $&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Werner</description>
      <pubDate>Fri, 22 Aug 2003 05:12:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-formula/m-p/3054562#M719161</guid>
      <dc:creator>Werner Rips</dc:creator>
      <dc:date>2003-08-22T05:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: wrong formula</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-formula/m-p/3054563#M719162</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;have u included&lt;BR /&gt;#include &lt;FLOAT.H&gt;  ?&lt;/FLOAT.H&gt;</description>
      <pubDate>Fri, 22 Aug 2003 05:26:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-formula/m-p/3054563#M719162</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2003-08-22T05:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: wrong formula</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-formula/m-p/3054564#M719163</link>
      <description>Yes, i have, but doesn't help.&lt;BR /&gt;&lt;BR /&gt;Tried bundled compiler, -&amp;gt; works!</description>
      <pubDate>Fri, 22 Aug 2003 09:10:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-formula/m-p/3054564#M719163</guid>
      <dc:creator>Werner Rips</dc:creator>
      <dc:date>2003-08-22T09:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: wrong formula</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-formula/m-p/3054565#M719164</link>
      <description>I can't reproduce your problem and I am running the B.11.06 version of the ANSI/C compiler; however, I do have PHSS_28706 installed and that is probably the difference.&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Aug 2003 14:36:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-formula/m-p/3054565#M719164</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-08-22T14:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: wrong formula</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-formula/m-p/3054566#M719165</link>
      <description>Thank you Clay,&lt;BR /&gt;installed the patch and the problem has gone.&lt;BR /&gt;Werner</description>
      <pubDate>Mon, 25 Aug 2003 06:37:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-formula/m-p/3054566#M719165</guid>
      <dc:creator>Werner Rips</dc:creator>
      <dc:date>2003-08-25T06:37:47Z</dc:date>
    </item>
  </channel>
</rss>

