Files
2025-10-25 03:02:53 +03:00

31 lines
985 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[diff.cpp23.strings]
# Annex C (informative) Compatibility [[diff]](./#diff)
## C.1 C++ and ISO C++ 2023 [[diff.cpp23]](diff.cpp23#strings)
### C.1.9 [[strings]](strings "27Strings library"): strings library [diff.cpp23.strings]
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/compatibility.tex#L316)
**Affected subclause:** [[string.conversions]](string.conversions)
**Change:** Output of floating-point overloads of to_string and to_wstring[.](#1.sentence-1)
**Rationale:** Prevent loss of information and improve consistency with other formatting
facilities[.](#1.sentence-2)
**Effect on original feature:** to_string and to_wstring function calls that take
floating-point arguments may produce a different output[.](#1.sentence-3)
[*Example [1](#example-1)*: auto s = std::to_string(1e-7); // "1e-07"// previously "0.000000" with '.' possibly// changed according to the global C locale — *end example*]