金额常用

String transactionSum = null;
BigDecimal stlmAmount = new BigDecimal(transactionSum);
        stlmAmount = stlmAmount.setScale(CheckingBusinessConstant.SCALE_TWO, RoundingMode.HALF_UP);
        Debug.logstlmAmount:" + stlmAmount, module);
        BigDecimal balance = amountTotal.subtract(stlmAmount);
        if (BigDecimal.ZERO.compareTo(balance) == 1) {
            //do something
        }

 

你可能感兴趣的:(UP)