Skip to content

Duration.seconds, .milliseconds, and .microseconds should preserve exact values #66137

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

Conversation

stephentyrone
Copy link
Contributor

When constructing a Duration from Double, we should do it in such a way that exact integer inputs are preserved exactly, so long as they are represented as a Duration. This was not previously the case. Now it is.

Resolves rdar://109786698

… preserve exact values (swiftlang#66111)

When constructing a Duration from Double, we should do it in such a way that exact integer inputs are preserved exactly, so long as they are represented as a Duration. This was not previously the case. Now it is.
@stephentyrone
Copy link
Contributor Author

@swift-ci test

@stephentyrone stephentyrone marked this pull request as ready for review May 25, 2023 17:39
@stephentyrone stephentyrone requested a review from a team as a code owner May 25, 2023 17:39
@stephentyrone
Copy link
Contributor Author

@swift-ci test macOS

@stephentyrone stephentyrone merged commit 971f43b into swiftlang:release/5.9 May 30, 2023
@stephentyrone stephentyrone deleted the when-i-say-seconds-i-mean-seconds-5.9 branch May 30, 2023 13:38
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.

2 participants