tmp/tmpzsvqaau4/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### [[strings]]: strings library <a id="diff.cpp23.strings">[[diff.cpp23.strings]]</a>
|
| 2 |
+
|
| 3 |
+
**Change:** Output of floating-point overloads of `to_string` and
|
| 4 |
+
`to_wstring`. **Rationale:** Prevent loss of information and improve
|
| 5 |
+
consistency with other formatting facilities. **Effect on original
|
| 6 |
+
feature:** `to_string` and `to_wstring` function calls that take
|
| 7 |
+
floating-point arguments may produce a different output.
|
| 8 |
+
|
| 9 |
+
[*Example 1*:
|
| 10 |
+
|
| 11 |
+
``` cpp
|
| 12 |
+
auto s = std::to_string(1e-7); // "1e-07"
|
| 13 |
+
// previously "0.000000" with '.' possibly
|
| 14 |
+
// changed according to the global C locale
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
— *end example*]
|
| 18 |
+
|