Subject: [Boost-bugs] [Boost C++ Libraries] #12227: cpp_bin_float: sqrt(+inf) inconsistent with IEEE-754
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-05-24 20:18:22
#12227: cpp_bin_float: sqrt(+inf) inconsistent with IEEE-754
------------------------------+----------------------------
Reporter: Michael Shatz | Owner: johnmaddock
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: multiprecision
Version: Boost 1.61.0 | Severity: Problem
Keywords: |
------------------------------+----------------------------
cpp_bin_float sqrt(+inf) returns NaN.
IEEE-754 appears to recommend +inf which is also the most logical result.
The requirement is not very clear from the wording of Standard, but asked
a member of committee and he has no doubt that it was an intention.
It's not a bug, because cpp_bin_float was never advertised as fully
compliant with IEEE-754, but I see no reason why it can't be as close as
possible to IEEE binary floating point. Especially in cases like that
where consistency with IEEE is almost free in terms of performance.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12227> 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:20 UTC