-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 #55820 : missing _convert_rounding methods for RoundFromZero #57802
base: master
Are you sure you want to change the base?
Fix #55820 : missing _convert_rounding methods for RoundFromZero #57802
Conversation
…Zero - Implemented `_convert_rounding` method for `RoundingMode{:FromZero}` to handle conversions to `AbstractFloat`. - Supported conversions for the following floating-point types: - Float16, Float32, Float64, AbstractFloat, BigFloat - Handled real number types including: - Bool, Rational{Int8} - Added tests to validate conversions for all affected type combinations.
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.
Thanks for this PR! It's lovely. I have a few comments but this should be pretty easy to merge. And welcome! Please let me know if you have any questions or need help contributing.
Renamed test to better reflect its purpose and included the issue number for easier tracking. Co-authored-by: Lilith Orion Hafner <[email protected]>
- Improve test coverage beyond zero-to-zero cases - Include tests for large positive and negative values - Ensure correct rounding behavior for nextfloat(0.0) Co-authored-by: Lilith Orion Hafner <[email protected]>
Hey @LilithHafner, I've tested and committed the suggested tests. Let me know if there's anything else to adjust. Thanks for the review. |
Thanks! Please also remove as many deviations from the |
While you are welcome to use AI to assist you in learning or explaining things to you, it is not acceptable to post AI generated content under your own name or otherwise under the guise of human content. |
I'm sincerely sorry, I’ve deleted the comment and I won’t use AI for writing assistance anymore. It was mainly for grammar correction. The code and tests are entirely my own, would it still be okay to proceed with the commit? |
No, we can't proceed with merging until you address #57802 (comment) and #57802 (comment) |
_convert_rounding
method forRoundingMode{:FromZero}
to handle conversions toAbstractFloat
.