Skip to content

.seconds, .milliseconds, and .microseconds should preserve exact values #66111

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

Conversation

stephentyrone
Copy link
Contributor

@stephentyrone stephentyrone commented May 24, 2023

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.

… preserve exact values

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 merged commit db0a728 into swiftlang:main May 25, 2023
@stephentyrone stephentyrone deleted the when-i-say-seconds-i-mean-seconds branch May 25, 2023 03:07
stephentyrone added a commit to stephentyrone/swift that referenced this pull request May 25, 2023
… 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 added a commit to stephentyrone/swift that referenced this pull request May 25, 2023
… 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.
NuriAmari pushed a commit to NuriAmari/swift that referenced this pull request May 28, 2023
… 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 added a commit that referenced this pull request May 30, 2023
… preserve exact values (#66111) (#66137)

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.
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