Java BigDecimal Subtract subtract(BigDecimal v1, BigDecimal v2)

Here you can find the source of subtract(BigDecimal v1, BigDecimal v2)

Description

subtract

License

Open Source License

Declaration

public static BigDecimal subtract(BigDecimal v1, BigDecimal v2) 

Method Source Code


//package com.java2s;
import java.math.BigDecimal;

public class Main {

    public static BigDecimal subtract(String v1, String v2) {

        return subtract(new BigDecimal(v1), new BigDecimal(v2));
    }//from w w w.j  a v  a 2s .com

    public static BigDecimal subtract(double v1, double v2) {

        return subtract(new BigDecimal(v1), new BigDecimal(v2));
    }

    public static BigDecimal subtract(BigDecimal v1, BigDecimal v2) {

        return v1.subtract(v2);
    }
}

Related

  1. subtract(BigDecimal left, BigDecimal right)
  2. subtract(BigDecimal minuend, BigDecimal subtrahend)
  3. subtract(BigDecimal num1, BigDecimal num2)
  4. subtract(BigDecimal number1, BigDecimal number2, int decimalPlaces)
  5. subtract(BigDecimal one, BigDecimal another)
  6. subtract(final BigDecimal baseAmount, final BigDecimal amountToSubtract)
  7. subtract(final BigDecimal start, final BigDecimal... values)
  8. subtract(float a, BigDecimal b_bd)
  9. subtract(Vector a, Vector b)