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 #117

Open
GoogleCodeExporter opened this issue May 17, 2015 · 0 comments
Open

Cannot parse min normal positive double #117

GoogleCodeExporter opened this issue May 17, 2015 · 0 comments

Comments

@GoogleCodeExporter
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

Original issue reported on code.google.com by [email protected] on 14 Nov 2014 at 2:14

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

No branches or pull requests

1 participant