[Boost-bugs] [Boost C++ Libraries] #6975: lexical_cast<double> produces different answers with 53-bit FPU precision

Subject: [Boost-bugs] [Boost C++ Libraries] #6975: lexical_cast<double> produces different answers with 53-bit FPU precision
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-08 21:45:11


#6975: lexical_cast<double> produces different answers with 53-bit FPU precision
-----------------------------------------------------------+----------------
 Reporter: Jonathan Jones <jonathan.jones@…> | Owner: apolukhin
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: lexical_cast
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: |
-----------------------------------------------------------+----------------
 For some subset of floating point strings, if you use
 lexical_cast<double>, it will produce different answers than if you use
 std::atof or reading from std::istringstream. However, this only happens
 when you use 53 bit FPU precision as opposed to 64 bit.

 A duplication program is attached, which I've only tried on g++/64 bit-
 Intel because of the code modifying the FPU settings.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6975>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC