-
Notifications
You must be signed in to change notification settings - Fork 68
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
Enhanced RDoc for bigdecimal.c #195
Conversation
This PR should have a documentation label, but that label does not (yet) exist. |
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.
Looks good to me. Thanks for improving the Ruby documentation!
I read the whole changeset and only saw a single tiny detail which I made an inline question about.
I recommend a merge.
* BigDecimal("1e-20").precision # => 20 | ||
* BigDecimal("Infinity").precision # => 0 | ||
* BigDecimal("-Infinity").precision # => 0 | ||
* BigDecimal("NaN").precision # => 0 |
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.
I like the previous format in the output example. Please revert this part.
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.
Done.
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.
I left two additional comments.
@mrkn, ready for review. |
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.
I found more additional points to be confirmed. Could you check them?
ext/bigdecimal/bigdecimal.c
Outdated
* if the neighbors are equidistant, round away from zero. | ||
* Aliased as +:half_up+ and +:default+. | ||
* - +ROUND_HALF_DOWN+: Round toward the nearer neighbor; | ||
* if the neighbors are equidistant, round toward from zero. |
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.
Remove from
before zero
.
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.
Done.
@mrkn, I'm not positive I've addressed all your points. Can you confirm? |
@mrkn, is this ready to merge? |
@BurdetteLamar Thank you very much! |
Treats: