We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
md5: 04f0e1ecffd41bad94ee12a23f35d9d1
Issue Description:
Consider the following:
import Foundation let x = Double.greatestFiniteMagnitude Double(sign: .plus, exponent: 10, significand: x) // +inf Double(sign: .plus, exponent: .max, significand: x) // +inf let y = Decimal.greatestFiniteMagnitude Decimal(sign: .plus, exponent: 10, significand: y) // nan Decimal(sign: .plus, exponent: .max, significand: y) // runtime error (!)
The expected result is that Decimal should overflow to NaN (since it has no representation of infinity).
The text was updated successfully, but these errors were encountered:
#3074
Sorry, something went wrong.
xwu
No branches or pull requests
Additional Detail from JIRA
md5: 04f0e1ecffd41bad94ee12a23f35d9d1
Issue Description:
Consider the following:
The expected result is that Decimal should overflow to NaN (since it has no representation of infinity).
The text was updated successfully, but these errors were encountered: