This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix up the majority of IEEE compliance bugs for Double/Single ToString and Parse #19905
Fix up the majority of IEEE compliance bugs for Double/Single ToString and Parse #19905
Changes from all commits
0785a5a
6ff3240
351abbb
786929e
a909896
db591d5
571e2ab
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which paragraph does require this? I am not able to find it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"5.12.2 External decimal character sequences representing finite numbers"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not read this as requirement. This paragraph just explains consequences of what is written above.
This says that round-tripping can be achieved by always having at least
Pmin(bf)
significant digits. It does not say that this is the only way to achieve round-tripping.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to update this logic so that we preserve the fact that the user didn't explicitly specify a digit count, or that the user specified
0
for the digit count.This makes a difference for things like
double.ToString("N")
which i had accidentally made to be treated likedouble.ToString("N15")
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now,
digits
is always preserved (except for"R"
, where it is explicitly documented to be ignored) and precision is updated accordingly.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This brought the CoreFX failure count down to 354, and they are now all XML and JSON serialization differences plus the UTF8Parser differences (which need fixup and for which the code lives in CoreFX).