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-10938] abs(Decimal.nan) returns 0 #4001

Closed
swift-ci opened this issue Jun 16, 2019 · 2 comments
Closed

[SR-10938] abs(Decimal.nan) returns 0 #4001

swift-ci opened this issue Jun 16, 2019 · 2 comments
Assignees

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-10938
Radar None
Original Reporter Eugene Gubin (JIRA User)
Type Bug
Status Closed
Resolution Done
Environment

Xcode 10.2.1

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee @xwu
Priority Medium

md5: 475aee9cd1b9d6b1717bebd3dcd1c047

Issue Description:

abs(Decimal.nan) returns 0

Can be reproduced in Playground.

@xwu
Copy link
Collaborator

xwu commented Jun 24, 2019

The underlying bug is in the implementation of `magnitude`. I've created a PR (#25698) resolving that and another bug.

@xwu
Copy link
Collaborator

xwu commented Jun 25, 2019

A fix is now merged for both the Darwin overlay and swift-corelibs-foundation.

@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

2 participants