Java BigDecimal Min minus(BigDecimal num1, BigDecimal num2)

Here you can find the source of minus(BigDecimal num1, BigDecimal num2)

Description

minus

License

Apache License

Declaration

public static BigDecimal minus(BigDecimal num1, BigDecimal num2) 

Method Source Code


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

import java.math.BigDecimal;

public class Main {

    public static BigDecimal minus(BigDecimal num1, BigDecimal num2) {
        if (null == num1) {
            num1 = BigDecimal.ZERO;
        }// w w  w  .  j  av a2 s  .com
        if (null == num2) {
            num2 = BigDecimal.ZERO;
        }
        return num1.subtract(num2);
    }
}

Related

  1. min(List numbers)
  2. minimum(BigDecimal... decimals)
  3. minimum(BigDecimal... values)
  4. minus(BigDecimal a, BigDecimal b)
  5. minus(BigDecimal decimal)
  6. minusMultiply(BigDecimal num)
  7. minValue(BigDecimal[] bigDecimalNumbers)