Skip to content

Final implementation of Decimal #687

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

Merged
merged 2 commits into from
Oct 20, 2016
Merged

Final implementation of Decimal #687

merged 2 commits into from
Oct 20, 2016

Conversation

alblue
Copy link
Contributor

@alblue alblue commented Oct 14, 2016

This extends the normalisation routines to be able to handle
mismatched size elements, and division of decimals that are larger
than short values correctly. It adds tests that are the same coverage
as for NSDecimal on Darwin.

This extends the normalisation routines to be able to handle
mismatched size elements, and division of decimals that are larger
than short values correctly. It adds tests that are the same coverage
as for NSDecimal on Darwin.
Using the functionality in NSDecimal, implement the NSDecimalNumber
such that the additional tests in TestNSDecimal pass.
@@ -1479,26 +1566,6 @@ fileprivate struct WideDecimal : VariableLengthNumber {
}
}
}
public func compare(to rhs: WideDecimal) -> ComparisonResult {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was added as part of a transitional implementation in the previous commit, but is no longer necessary - so it has been removed.

@pushkarnk
Copy link
Member

@swift-ci please test

@parkera parkera merged commit 73d13e5 into swiftlang:master Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants