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
group_digits
group_digits does not work with negative integers.
I would expect fmt::group_digits(-12345) to produce -12,345 and not 18,446,744,073,709,539,271
fmt::group_digits(-12345)
-12,345
18,446,744,073,709,539,271
Here is the code to reproduce: https://godbolt.org/z/vjzrM48bb
The text was updated successfully, but these errors were encountered:
Seems to be due to a static cast to an unsigned type:
fmt/include/fmt/format.h
Line 4134 in 365c3fb
Sorry, something went wrong.
Fixed by #3901.
No branches or pull requests
group_digits
does not work with negative integers.I would expect
fmt::group_digits(-12345)
to produce-12,345
and not18,446,744,073,709,539,271
Here is the code to reproduce: https://godbolt.org/z/vjzrM48bb
The text was updated successfully, but these errors were encountered: