[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 "27 Strings 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*]
