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

Use BigDecimal.compareTo() insted of BigDecimal.equals() #67

Open
malbera opened this issue Jul 25, 2023 · 0 comments
Open

Use BigDecimal.compareTo() insted of BigDecimal.equals() #67

malbera opened this issue Jul 25, 2023 · 0 comments

Comments

@malbera
Copy link

malbera commented Jul 25, 2023

The java.math.BigDecimal.equals() method compares this BigDecimal with the specified Object for equality. Unlike compareTo, this method considers two BigDecimal objects equal only if they are equal in value and scale (thus 2.0 is not equal to 2.00 when compared by this method).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant