-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Proposal] Expose additional MidpointRounding modes #27205
[Proposal] Expose additional MidpointRounding modes #27205
Comments
This will require additional work in |
CC. @eerhardt, @danmosemsft |
Hello I would like to contribute to corefx - May I take this one ? |
For sure you can @hamish-rose. I sent you a collaborator link. If you accept, I can sign this to you. Note when you join it defaults to subscribing you to all repo activity, you will profligate want to switch that off as this repo is busy. |
Please ask here if you have questions. In the documentation folder in this repo is everything you should need to get started. |
Thanks, I've accepted. |
These are not midpoint rounding modes but directed rounding modes. |
This was discussed in the API review and it was determined that we should still expose them on CC. @terrajobst who may have the notes from that meeting? |
I'm not opposed to having separate overloads that take a |
I'm still concerned about naming - it's really confusing to see I propose renaming them to |
I don't think |
Rationale
The IEEE 754:2008 spec calls out five different supported "rounding directions", 4 of which are required for binary-floating point values.
CoreFX currently exposes only 1 of the required rounding directions and the 1 optional rounding mode. We should expose the remaining three rounding directions in order to be more compliant and give users the greatest flexibility when writing their applications.
Proposed API
The text was updated successfully, but these errors were encountered: