I need a way to express that into valid java code: I have 2 BigDecimals, and I want to know if the smaller BigDecimal can (when added to the bigger BigDecimal once) change the integral part of the bigger BigDecimal. Example:
0.6; 0.4 ->true
0.6; 0.39 ->false
Is there any efficient way of doing that, or do I have to test?
 
     
     
     
    