We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Opening a new ticket since I'm not sure what is the root cause, and the number returned is not negative. Rough testcase:
public void testBigDecimals() { Money sum = MoneyFactory.fromCharSequence("22543.6089278196672"); Money toAdd = MoneyFactory.fromCharSequence("805.694827586206976"); Money newSum = sum.add(toAdd); assertTrue("Value too small: " + newSum, newSum.toDouble() > 22000); }
The sum here should be something above 23000, but this test fails with: Value too small: 4902.55968169632256
The text was updated successfully, but these errors were encountered:
Added 2 more overflow checks.
Sorry, something went wrong.
No branches or pull requests
Opening a new ticket since I'm not sure what is the root cause, and the number returned is not negative. Rough testcase:
The sum here should be something above 23000, but this test fails with:
Value too small: 4902.55968169632256
The text was updated successfully, but these errors were encountered: