I have 3 BigDecimal variables: a, b and c. I then do the following
test:
if( a.add(b).compareTo(c) == 0 )
a = 49.9900000000000001827363995
b = 50.01
c = 100
This sum does not equal zero. How do I set the scale/rounding for all three BigDecimals to get the desired result to equal zero? These are dollar and cents amounts.
Thanks,
Joe