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
spirit::karma::generate generates 10.0e-04, but expecting 1.0e-03 #628
Comments
The 64 bit IEEE floating point format supports only up to 15.9 digits of precision (see https://en.wikipedia.org/wiki/Double-precision_floating-point_format). The number you are trying to convert requires at least 17 digits in order to be represented. The behavior of the generator is undefined in those cases. Please see #529 for more details. |
I am using MSCV from visual studio 2017 in 64bit. The value comes out when doing some math. They claim to be IEEE conform when not compiling with the compiler flag /fast. At the moment I use the precise-flag. |
@markusjrmueller please see #629 for a possible fix. Please let us know if this resolves your issue. |
Code is:
The text was updated successfully, but these errors were encountered: