Changed BigDecimal.isEqual to BigDecimal.compareTo
See http://stackoverflow.com/questions/6787142/bigdecimal-equals-versus-compareto