title: C++ converting from string to long double loses precision in QNX
body: <p>When converting strings to long double I lose precision in QNX. Do you know how to fix this problem?</p>
  
  <p>I am using c++. I have tried double and float and there were no problems.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;limits&gt;
  #include &lt;sstream&gt;
  
  int main(){
      long double originalNumber = std::numeric_limits&lt;long double&gt;::max() / 2;
      long double convertedNumber;
  
      // From long double to string
      std::ostringstream ostr;
      ostr &lt;&lt; originalNumber;
      std::string tmp_str = ostr.str();
  
      //From string to long double
      std::istringstream istr(tmp_str);
      istr &gt;&gt; convertedNumber;
  
      // Check if they are similar
      if (originalNumber == convertedNumber)
          std::cout&lt;&lt; "The same\n";
      else
          std::cout&lt;&lt; "Not the same\n";
  
      return 0;
  }
  </code></pre>
  
  <p>The result is always <code>Not the same</code></p>