Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 921759 Details for
Bug 1108800
std::numeric_limits<double>::max() returns 1.79769e+308
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
New patch to accept slightly larger value than double max
cxxtools-2.2-serialization-double-rounding.patch (text/plain), 807 bytes, created by
Menanteau Guy
on 2014-07-28 13:04:49 UTC
(
hide
)
Description:
New patch to accept slightly larger value than double max
Filename:
MIME Type:
Creator:
Menanteau Guy
Created:
2014-07-28 13:04:49 UTC
Size:
807 bytes
patch
obsolete
>--- src/serializationinfo.cpp.ori >+++ src/serializationinfo.cpp >@@ -730,7 +730,11 @@ long double SerializationInfo::_getFloat > if (ret != std::numeric_limits<long double>::infinity() > && ret != -std::numeric_limits<long double>::infinity() > && ret == ret // check for NaN >- && (ret < -max || ret > max)) >+// The double value is converted to long double, then to decimal and >+// back to long double. Somewhere in this chain a rounding error increases >+// the values lightly, that it is too large to fit into a double. >+// The solution is to accept a slightly larger value than double max. >+ && (ret < -(max*1.000000000000001) || ret > (max*1.000000000000001))) > { > std::ostringstream msg; > msg << "value " << ret << " does not fit into " << type;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1108800
:
920168
| 921759