Skip to content

Comments

Track trailing zeros only for floating point numbers#48608

Merged
7 commits merged intodotnet:masterfrom
pgovind:parsebug_int
Feb 26, 2021
Merged

Track trailing zeros only for floating point numbers#48608
7 commits merged intodotnet:masterfrom
pgovind:parsebug_int

Conversation

@pgovind
Copy link

@pgovind pgovind commented Feb 22, 2021

Fixes #48604 and #48648

This change also reduces the scope of #47666. With this change, we now track trailing zeros only for FloatingPoint formats. As a result, this change also fixes decimal->string roundtripping bug that 47666 introduced.

@ghost
Copy link

ghost commented Feb 22, 2021

Tagging subscribers to this area: @tannergooding, @pgovind
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #48604

This change also reduces the scope of #47666. With this change, we now track trailing zeros only for FloatingPoint formats.

Author: pgovind
Assignees: -
Labels:

area-System.Numerics

Milestone: -

Copy link
Member

@jeffhandley jeffhandley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but of course needs @tannergooding's signoff too.

}

[Theory]
[InlineData("3.00")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is one of the tests we would expect to add a much longer list of values to in the future, per our recent discussion about adding much more comprehensive tests in this area.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup. This is just the start

@ghost
Copy link

ghost commented Feb 26, 2021

Hello @pgovind!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 5b04977 into dotnet:master Feb 26, 2021
@jeffhandley
Copy link
Member

/backport to release/6.0-preview2

@github-actions
Copy link
Contributor

Started backporting to release/6.0-preview2: https://github.com/dotnet/runtime/actions/runs/604327471

@ghost ghost locked as resolved and limited conversation to collaborators Mar 29, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Int.Parse("3.00") throws an error

3 participants