Skip to content

Clarify what "schoolbook" rounding means #77903

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 7, 2025

Conversation

amartini51
Copy link
Member

The docs for FloatingPointRoundingRule.toNearestOrAwayFromZero note that this default behavior is also known as "schoolbook rounding", but it's hard to look up what that means if you don't know the enum name.

Fixes: rdar://140725655

@amartini51 amartini51 requested a review from a team as a code owner December 2, 2024 18:41
@natecook1000
Copy link
Member

@swift-ci Please smoke test

@natecook1000 natecook1000 enabled auto-merge (squash) December 2, 2024 22:01
@amartini51
Copy link
Member Author

@swift-ci Please smoke test.

1 similar comment
@amartini51
Copy link
Member Author

@swift-ci Please smoke test.

@natecook1000 natecook1000 merged commit 57657c6 into swiftlang:main Jan 7, 2025
3 checks passed
@amartini51 amartini51 deleted the rounding_140725655 branch January 7, 2025 17:27
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