Skip to content
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

SI-8970 hashCode of BigDecimal and Double do not match #4141

Merged
merged 1 commit into from Dec 4, 2014

Conversation

Ichoran
Copy link
Contributor

@Ichoran Ichoran commented Nov 21, 2014

Switched isValidDouble (binary equivalence) to isDecimalDouble (decimal expansion equivalence), as people generally do not care about the slew of extra decimal digits off the end of the binary approximation to a decimal fraction (decimal equivalence is the standard now).

Added minimal unit test to verify behavior.

Switched isValidDouble (binary equivalence) to isDecimalDouble (decimal expansion equivalence), as people generally do not care about the slew of extra decimal digits off the end of the binary approximation to a decimal fraction (decimal equivalence is the standard now).

Added minimal unit test to verify behavior.
@scala-jenkins scala-jenkins added this to the 2.11.5 milestone Nov 21, 2014
@adriaanm adriaanm self-assigned this Nov 24, 2014
@lrytz
Copy link
Member

lrytz commented Dec 4, 2014

LGTM

lrytz added a commit that referenced this pull request Dec 4, 2014
SI-8970  hashCode of BigDecimal and Double do not match
@lrytz lrytz merged commit 3b1ac06 into scala:2.11.x Dec 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants