Java BigDecimal Divide decimalDivide(BigDecimal cs, BigDecimal bcs, int scale)

Here you can find the source of decimalDivide(BigDecimal cs, BigDecimal bcs, int scale)

Description

decimal Divide

License

Open Source License

Declaration

public static BigDecimal decimalDivide(BigDecimal cs, BigDecimal bcs, int scale) 

Method Source Code

//package com.java2s;

import java.math.BigDecimal;

public class Main {
    public static BigDecimal decimalDivide(BigDecimal cs, BigDecimal bcs, int scale) {
        return cs.divide(bcs, scale, BigDecimal.ROUND_HALF_UP);
    }//w ww . j  a  va  2s . com
}

Related

  1. div(BigDecimal b1, BigDecimal b2)
  2. div(BigDecimal d1, BigDecimal d2)
  3. div(BigDecimal v1, BigDecimal v2)
  4. div(BigDecimal val, long divisor)