com.admin4j.common.BigDecimalUtil Maven / Gradle / Ivy
package com.admin4j.common;
import java.math.BigDecimal;
/**
* @author andanyang
* @since 2022/4/11 15:40
*/
public class BigDecimalUtil {
//-1
public static final BigDecimal NEGATIVE_ONE = BigDecimal.valueOf(-1);
public static final BigDecimal ONE_HUNDRED = BigDecimal.valueOf(100);
public static final BigDecimal ONE_HUNDREDTH = new BigDecimal("0.01");
public static final BigDecimal HOUR_8 = BigDecimal.valueOf(8);
public static boolean isEmpty(BigDecimal bigDecimal) {
return bigDecimal == null || BigDecimal.ZERO.compareTo(bigDecimal) == 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy