Opened 6 years ago
Closed 6 years ago
#12213 closed Feature Requests (fixed)
cpp_bin_float: convert_to<double> of negative zero returns positive zero
Reported by: | Michael Shatz | Owned by: | John Maddock |
---|---|---|---|
Milestone: | Boost 1.62.0 | Component: | multiprecision |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
Strictly speaking, such behavior can't be called bug, because signed zeros are not promised to work. But since in the new version signed zeros mostly work as in IEEE, it would be more consistent if negative zero will be converted to negative zero.
Change History (1)
comment:1 by , 6 years ago
Milestone: | To Be Determined → Boost 1.62.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in https://github.com/boostorg/multiprecision/commit/7fa93b882144dd41de855198bb90ed44ba5c5cd1
Thanks!