-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Erroneous fixed-precision formatting for long double
#3539
Comments
Good catch, this should be 0.0. |
Fixed in 388bc29. Thanks for reporting! |
This does not seemed fixed #include <fmt/format.h>
#include <format>
#include <iostream>
int main(void) {
long double val = 0.0000000000000071054273576010018587L;
fmt::println("fmt: {:13.7f}", val);
std::cout << std::format("std: {:13.7f}\n\n", val);
} Output
https://compiler-explorer.com/z/57Tbj3rjx Can you reopen the issue please |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code:
Godbolt: https://godbolt.org/z/16TWs8c8M
The text was updated successfully, but these errors were encountered: