We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm replacing a home grown safe format library with fmt and here is a test case where the output doesn't match:
sprintf("%g", 0.000000456) -> 4.56e-07 fmt::sprintf("%g", 0.000000456) -> 4.56000e-07
I found that FMT_USE_GRISU set to zero fixes my problem, so this algorithm appears to not generate equivalent output.
The text was updated successfully, but these errors were encountered:
Don't emit trailing zeros in exponential notation (#1376)
40414b3
Fixed in 40414b3. Thanks for reporting.
Sorry, something went wrong.
No branches or pull requests
I'm replacing a home grown safe format library with fmt and here is a test case where the output doesn't match:
sprintf("%g", 0.000000456) -> 4.56e-07
fmt::sprintf("%g", 0.000000456) -> 4.56000e-07
I found that FMT_USE_GRISU set to zero fixes my problem, so this algorithm appears to not generate equivalent output.
The text was updated successfully, but these errors were encountered: