Java BigDecimal Multiply multiply(BigDecimal a, BigDecimal b)

Here you can find the source of multiply(BigDecimal a, BigDecimal b)

Description

multiply

License

Open Source License

Declaration

public static BigDecimal multiply(BigDecimal a, BigDecimal b) 

Method Source Code


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

public class Main {
    private static int scale = 5;

    public static BigDecimal multiply(BigDecimal a, BigDecimal b) {
        return a.multiply(b).setScale(scale, RoundingMode.HALF_UP);
    }/*from   w  ww.  j a va  2  s  . c  o m*/
}

Related

  1. mul(BigDecimal b1, BigDecimal b2)
  2. mul(BigDecimal d1, BigDecimal d2)
  3. mul(BigDecimal v1, BigDecimal v2)
  4. mul(BigDecimal v1, BigDecimal v2)
  5. multiple(BigDecimal dividend, int divisor)
  6. multiply(BigDecimal a, int multiplier)
  7. multiply(BigDecimal amount, BigDecimal multiplicand, int scale)
  8. multiply(BigDecimal aValue1, BigDecimal aValue2)
  9. multiply(BigDecimal bigDecimal, BigDecimal bigDecimal2)