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
Both format("{:#.0f}", 0.01) and format("{:#.0f}", 0.5) should return "0." (like std::ostringstream does), but they return "0" and "0..", respectively
format("{:#.0f}", 0.01)
format("{:#.0f}", 0.5)
"0."
"0"
"0.."
Please add some tests to test-format.cc like the following:
EXPECT_EQ("0.", format("{:#.0f}", 0.01)); EXPECT_EQ("0.", format("{:#.0f}", 0.5));
The text was updated successfully, but these errors were encountered:
More showpoint fixes and tests (#1498)
6a91326
c85efef
Good catch, thanks! Fixed and added tests in c85efef.
Sorry, something went wrong.
Merge pull request #55 from fmtlib/master
06e989e
More showpoint fixes and tests (fmtlib#1498)
No branches or pull requests
Both
format("{:#.0f}", 0.01)
andformat("{:#.0f}", 0.5)
should return"0."
(like std::ostringstream does), but they return"0"
and"0.."
, respectivelyPlease add some tests to test-format.cc like the following:
The text was updated successfully, but these errors were encountered: