Java BigDecimal Multiply multiply(BigDecimal aValue1, BigDecimal aValue2)

Here you can find the source of multiply(BigDecimal aValue1, BigDecimal aValue2)

Description

multiply

License

Open Source License

Declaration

public static BigDecimal multiply(BigDecimal aValue1, BigDecimal aValue2) 

Method Source Code


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

public class Main {

    public static BigDecimal multiply(BigDecimal aValue1, BigDecimal aValue2) {
        if (aValue1 == null || aValue2 == null)
            return null;

        return aValue1.multiply(aValue2);
    }/*from w  w  w  . java2 s .co m*/

    public static BigDecimal multiply(BigDecimal aValue1, BigDecimal aValue2, int sacle, int roundingMode) {
        if (aValue1 == null || aValue2 == null)
            return null;

        return aValue1.multiply(aValue2).setScale(sacle, roundingMode);
    }
}

Related

  1. mul(BigDecimal v1, BigDecimal v2)
  2. multiple(BigDecimal dividend, int divisor)
  3. multiply(BigDecimal a, BigDecimal b)
  4. multiply(BigDecimal a, int multiplier)
  5. multiply(BigDecimal amount, BigDecimal multiplicand, int scale)
  6. multiply(BigDecimal bigDecimal, BigDecimal bigDecimal2)
  7. multiply(BigDecimal left, BigDecimal right)
  8. multiply(BigDecimal multiplier1, BigDecimal multiplier2, int scale)
  9. multiply(BigDecimal num1, BigDecimal num2)