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

985 B

[diff.cpp23.strings]

Annex C (informative) Compatibility [diff]

C.1 C++ and ISO C++ 2023 [diff.cpp23]

C.1.9 [strings]: strings library [diff.cpp23.strings]

1

#

Affected subclause: [string.conversions]

Change: Output of floating-point overloads of to_string and to_wstring.

Rationale: Prevent loss of information and improve consistency with other formatting facilities.

Effect on original feature: to_string and to_wstring function calls that take floating-point arguments may produce a different output.

[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]