package com.hzs.common.core.utils;

import com.hzs.common.core.constant.MagicNumberConstants;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class BigDecimalUtil {

    /**
     * 除万取2位小数并且去尾
     *
     * @param bigDecimal
     * @return
     */
    public static BigDecimal handleBig10000Down(BigDecimal bigDecimal) {
        return bigDecimal.divide(MagicNumberConstants.big10000, 2, RoundingMode.DOWN);
    }

}
