-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
<format>
: fix std::format("{:#.precision}", floating)
#3815
Conversation
assert(std::format("{:#.3}", 10.1) == "10.1"); | ||
assert(std::format("{:#.4}", 10.1) == "10.1"); | ||
assert(std::format("{:#.5}", 10.1) == "10.1"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only none
type is affected by this pr, so there are no checks for other format types('g','a','f',etc).
tests/std/tests/GH_003003_format_fix_decimal_point_and_trailing_zero/env.lst
Outdated
Show resolved
Hide resolved
Co-authored-by: A. Jiang <[email protected]>
This comment was marked as resolved.
This comment was marked as resolved.
I looked up the failing test names in the Azure Pipelines output, removed the corresponding lines from
|
This comment was marked as resolved.
This comment was marked as resolved.
Thank you for these significant runtime correctness fixes! 😻 🛠️ ✨ |
I'm speculatively mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks again for these fixes! 🚀 🚀 🚀 |
"{:#precision}", floating
(onlyG/g
can have trailing zeros[ref]).