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
Incorrect documentation for BigDecimal#sign #78
Comments
mrzasa
added a commit
to mrzasa/bigdecimal
that referenced
this issue
Jul 28, 2022
Fixes ruby#78 by describing behaviour for positive and negative zero in the docs.
matzbot
pushed a commit
to ruby/ruby
that referenced
this issue
Sep 25, 2022
Fixes ruby/bigdecimal#78 by describing behaviour for positive and negative zero in the docs. ruby/bigdecimal@5415b120ab
mrzasa
added a commit
to mrzasa/bigdecimal
that referenced
this issue
Nov 30, 2022
Fixes ruby#78 by describing behaviour for positive and negative zero in the docs.
mrzasa
added a commit
to mrzasa/bigdecimal
that referenced
this issue
Dec 16, 2022
Fixes ruby#78 by describing behaviour for positive and negative zero in the docs.
mrzasa
added a commit
to mrzasa/bigdecimal
that referenced
this issue
Jan 13, 2023
Fixes ruby#78 by describing behaviour for positive and negative zero in the docs.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The documentation for
BigDecimal#sign
is incorrect. It reads:bigdecimal/ext/bigdecimal/bigdecimal.c
Lines 2735 to 2736 in f3e6bfd
However, this does not match
BigDecimal
's behavior:These values match the
BigDecimal::SIGN_XXX
constants for signed zeroes, which have the values1
and-1
(neither of which is zero as#sign
seems to document)The text was updated successfully, but these errors were encountered: