How to do BigDecimal modulus comparison
You should use remainder() method:
BigDecimal x = new BigDecimal(100);
BigDecimal remainder = x.remainder(new BigDecimal(20));
if (BigDecimal.ZERO.compareTo(remainder) == 0) {
System.out.println("x can be divided by 20");
}
if( x.remainder(new BigDecimal(20)).compareTo(BigDecimal.ZERO) == 0 ) {
// x is a multiple of 20
}