Java BigDecimal Min minusMultiply(BigDecimal num)

Here you can find the source of minusMultiply(BigDecimal num)

Description

minus Multiply

License

Apache License

Declaration

public static BigDecimal minusMultiply(BigDecimal num) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.math.BigDecimal;

public class Main {

    public static BigDecimal minusMultiply(BigDecimal num) {
        if (null == num) {
            num = BigDecimal.ZERO;
        }/*from w w  w  . ja v a2s .c  om*/
        return num.multiply(BigDecimal.valueOf(-1));
    }

    public static BigDecimal multiply(BigDecimal num1, BigDecimal num2) {
        if (null == num1) {
            num1 = BigDecimal.ZERO;
        }
        if (null == num2) {
            num2 = BigDecimal.ZERO;
        }
        return num1.multiply(num2);
    }
}

Related

  1. minimum(BigDecimal... decimals)
  2. minimum(BigDecimal... values)
  3. minus(BigDecimal a, BigDecimal b)
  4. minus(BigDecimal decimal)
  5. minus(BigDecimal num1, BigDecimal num2)
  6. minValue(BigDecimal[] bigDecimalNumbers)