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

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


Copy link

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`

Copy link

swift-ci commented Nov 9, 2018

Comment by Jacob Taxen (JIRA)

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

Copy link

CodaFi commented Nov 18, 2019

@swift-ci create

Copy link

xwu commented Aug 28, 2021


Copy link

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
None yet

No branches or pull requests

4 participants