Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-6785] Decimal.distance(to:) for Strideable is wrongly implemented #3745

Closed
Dante-Broggi opened this issue Jan 18, 2018 · 4 comments
Closed

[SR-6785] Decimal.distance(to:) for Strideable is wrongly implemented #3745

Dante-Broggi opened this issue Jan 18, 2018 · 4 comments
Assignees

Comments

@Dante-Broggi
Copy link

@Dante-Broggi Dante-Broggi commented Jan 18, 2018

Previous ID SR-6785
Radar rdar://problem/57273727
Original Reporter @Dante-Broggi
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee @xwu
Priority Medium

md5: 37a4c62a44ad5c109e2ae58556de6e31

Issue Description:

Numeric distances are `other - self` not `self - other`

@swift-ci
Copy link
Contributor

@swift-ci swift-ci commented Nov 9, 2018

Comment by Jacob Taxen (JIRA)

It should be abs(other - self), distances should be positive.

@CodaFi
Copy link
Member

@CodaFi CodaFi commented Nov 18, 2019

@swift-ci create

@xwu
Copy link
Collaborator

@xwu xwu commented Aug 28, 2021

#3066

@CodaFi
Copy link
Member

@CodaFi CodaFi commented Aug 31, 2021

@xwu Thank you so much for addressing this so quickly. It's unfortunate that we let this sit so long.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants