Skip to content

Decimal: init?(string:) and scanDecimal() should return nil on error. #2960

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 1 commit into from
Jan 5, 2021

Conversation

spevans
Copy link
Contributor

@spevans spevans commented Dec 29, 2020

  • If the exponent is too large for Int8 then return nil instead of NaN.

  • This matches Darwin's behaviour.

- If the exponent is too large for Int8 then return nil instead of NaN.

- This matches Darwin's behaviour.
@spevans
Copy link
Contributor Author

spevans commented Dec 29, 2020

@swift-ci test

1 similar comment
@spevans
Copy link
Contributor Author

spevans commented Jan 4, 2021

@swift-ci test

@spevans
Copy link
Contributor Author

spevans commented Jan 4, 2021

@swift-ci test linux

1 similar comment
@spevans
Copy link
Contributor Author

spevans commented Jan 5, 2021

@swift-ci test linux

@spevans spevans merged commit 7b6c6e0 into swiftlang:main Jan 5, 2021
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.

1 participant