Round Trip Format Example - Outdated code sample or no longer needed? #41766
Labels
doc-bug
Problem with the content; needs to be fixed [org][type][category]
dotnet-fundamentals/svc
okr-quality
Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.
Pri1
High priority, do before Pri2 and Pri3
📌 seQUESTered
Identifies that an issue has been imported into Quest.
Type of issue
Code doesn't work
Description
For https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings#round-trip-format-specifier-r , It shows a code example for using the round trip format specifier R on a double; however the code example has a comment at the end of the expected output. However; in my testing it has a result like this:
![image](https://private-user-images.githubusercontent.com/22186029/348848857-7acd873a-9783-4fa0-9e66-0eac81ee6767.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUzMzYyMDYsIm5iZiI6MTcyNTMzNTkwNiwicGF0aCI6Ii8yMjE4NjAyOS8zNDg4NDg4NTctN2FjZDg3M2EtOTc4My00ZmEwLTllNjYtMGVhYzgxZWU2NzY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAzVDAzNTgyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWExODZkM2Q3MTliMWJjNjQ0MWZmZGRmZjJlOTc1YWQ5MmI5ODRhYjkxYzdmOWE2ZDAxZDM3MDhmZTE4MTUxOTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.l_NJVbROJG0-vIhF4DTLGeZ6sj_Z2KVB_fwJNtcR7_8)
2 questions:
.ToString()
by default is round-trip compatible? Maybe adbb5e9 just didn't change enough?Page URL
https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
Content source URL
https://github.com/dotnet/docs/blob/main/docs/standard/base-types/standard-numeric-format-strings.md
Document Version Independent Id
f23035e0-f271-b48c-f9a9-8582be80b4ad
Article author
@adegeo
Metadata
Associated WorkItem - 294938
The text was updated successfully, but these errors were encountered: