Class BankersRounding
java.lang.Object
org.broadleafcommerce.common.money.BankersRounding
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubledivide(int scale, double dividend, double divisor) static BigDecimaldivide(int scale, BigDecimal dividend, BigDecimal divisor) static BigDecimaldivide(BigDecimal dividend, BigDecimal divisor) static intgetScaleForCurrency(Currency currency) static doublemultiply(int scale, double multiplicand, double multiplier) static BigDecimalsetScale(double amount) static BigDecimalsetScale(int scale, double amount) static BigDecimalsetScale(int scale, BigDecimal amount) static BigDecimalsetScale(BigDecimal amount) static BigDecimalsetScale(BigDecimal amount, int scale) static BigDecimal
-
Field Details
-
DEFAULT_SCALE
public static final int DEFAULT_SCALE- See Also:
-
ZERO
-
-
Constructor Details
-
BankersRounding
public BankersRounding()
-
-
Method Details
-
getScaleForCurrency
-
setScale
-
setScale
-
multiply
public static double multiply(int scale, double multiplicand, double multiplier) -
divide
-
divide
public static double divide(int scale, double dividend, double divisor) -
setScale
-
setScale
-
setScale
-
divide
-
zeroAmount
-