Java BigDecimal Divide divide(BigDecimal aValue1, BigDecimal aValue2, int scale)

Here you can find the source of divide(BigDecimal aValue1, BigDecimal aValue2, int scale)

Description

divide

License

Open Source License

Declaration

public static BigDecimal divide(BigDecimal aValue1, BigDecimal aValue2, int scale) 

Method Source Code


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

public class Main {

    public static BigDecimal divide(BigDecimal aValue1, BigDecimal aValue2, int scale) {
        if (aValue1 == null || aValue2 == null)
            return null;

        return aValue1.divide(aValue2, scale, BigDecimal.ROUND_HALF_UP);
    }/*from w w  w  .  j  a  v  a  2 s .c o m*/
}

Related

  1. div(BigDecimal d1, BigDecimal d2)
  2. div(BigDecimal v1, BigDecimal v2)
  3. div(BigDecimal val, long divisor)
  4. divide(BigDecimal a, BigDecimal b)
  5. divide(BigDecimal amount, BigDecimal divisor)
  6. divide(BigDecimal bd1, BigDecimal bd2)
  7. divide(BigDecimal dividend, BigDecimal divisor)
  8. divide(BigDecimal dividend, BigDecimal divisor)
  9. divide(BigDecimal dividend, BigDecimal divisor, int scale)