-
Notifications
You must be signed in to change notification settings - Fork 162
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
x3::double_ failed to parse 1.D-3 #763
Comments
The function you are citing is customizable via RealPolicies. |
yeah, I thought about that as a work-around. Given that this notation is pretty common, actually just found out it's stipulated by Fortran Standard, it'd be more convenient to support it (and the 'Q' notation) natively. |
These |
You are right, 'D' for x3::float_ sounds odd. How about allowing 'D' for x3::double_? It sounds natural. |
No, it's not. It's a Fortran language syntax thing, |
it is pretty common to have double precision floating point numbers to be written as something like 1.D-3. I believe many Fortran run-time libs does that. I traced it to x3/numeric/real_policies.hpp where a small change of below fixed it. should an option be provided to cope with this situation?
The text was updated successfully, but these errors were encountered: