-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
fix[lang]: define rounding mode for sqrt #4486
fix[lang]: define rounding mode for sqrt #4486
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4486 +/- ##
=======================================
Coverage 92.06% 92.06%
=======================================
Files 120 120
Lines 17330 17330
Branches 2932 2932
=======================================
Hits 15955 15955
Misses 957 957
Partials 418 418 ☔ View full report in Codecov by Sentry. |
@@ -146,6 +146,9 @@ def test_sqrt_bounds(sqrt_contract, value): | |||
) | |||
@hypothesis.example(value=Decimal(SizeLimits.MAX_INT128)) | |||
@hypothesis.example(value=Decimal(0)) | |||
@hypothesis.example(value=Decimal("0.9999999998")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please leave a link to the advisory to explain the values GHSA-2p94-8669-xg86
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's please also mention the rounding behavior in the documentation |
|
What I did
fix for GHSA-2p94-8669-xg86
prior to this PR, the rounding mode for
sqrt()
is undefined. this PR ensures the result is rounded down.How I did it
How to verify it
Commit message
Description for the changelog
Cute Animal Picture