Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot parse min normal positive double #197

Closed
ppadevski opened this issue Nov 17, 2014 · 2 comments
Closed

Cannot parse min normal positive double #197

ppadevski opened this issue Nov 17, 2014 · 2 comments

Comments

@ppadevski
Copy link

What steps will reproduce the problem?
Try to parse 2.2250738585072014E−308, the min normal positive double, as described here: http://en.wikipedia.org/wiki/Double-precision_floating-point_format

What is the expected output? What do you see instead?
0.0

What version of the product are you using? On what operating system?
r131, Linux

Please provide any additional information below.
1.7976931348623157E308 seems to work, that's because in reader.h

d *= internal::Pow10(exp(308) + expFrac(-16))

With 2.2250738585072014E−308, we have

d *= internal::Pow10(exp(-308) + expFrac(-16)) < -308

@pah
Copy link
Contributor

pah commented Nov 17, 2014

The old SVN versions are very old and quite outdated in a number of places. In the current master branch, this value seems to be parsed correctly. Can you confirm this?

Please note, that there are the related issues #120, #137 regarding the floating point (parsing) precision. Additionally, there is the experimental branch issue120floatprecision_customstrtod with further experiments.

@ppadevski
Copy link
Author

Haven't tried the version from github actually. Just saw it today... If you say it works, I believe you. I'll see when I can update to a more recent version and post if there are any problems. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants