Skip to content
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

to_chars fixed formatting with trailing zeros and no fractional part is incorrect #777

Closed
mborland opened this issue Jan 6, 2025 · 0 comments · Fixed by #778
Closed
Assignees
Labels
Bug Something isn't working

Comments

@mborland
Copy link
Member

mborland commented Jan 6, 2025

Test case: BOOST_TEST_EQ(std::format("{:.0f}", T {21, 6, true}), std::string{"-21000000"});

@mborland mborland added the Bug Something isn't working label Jan 6, 2025
@mborland mborland self-assigned this Jan 6, 2025
@mborland mborland mentioned this issue Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant