Java BigDecimal Divide divide(BigDecimal one, BigDecimal another)

Here you can find the source of divide(BigDecimal one, BigDecimal another)

Description

divide

License

Apache License

Declaration

public static BigDecimal divide(BigDecimal one, BigDecimal another) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.math.BigDecimal;
import java.math.MathContext;
import java.math.RoundingMode;

public class Main {
    public static final MathContext _SCALE = new MathContext(100, RoundingMode.HALF_UP);

    public static BigDecimal divide(BigDecimal one, BigDecimal another) {
        return one.divide(another, _SCALE);
    }/*from   ww w . j  a  va  2s .com*/
}

Related

  1. divide(BigDecimal left, BigDecimal right)
  2. divide(BigDecimal num1, BigDecimal num2, int scale, int mode)
  3. divide(BigDecimal num1, BigDecimal num2, int scale, int roundingMode)
  4. divide(BigDecimal number1, BigDecimal number2, int decimalPlaces)
  5. divide(BigDecimal numerator, BigDecimal denominator)
  6. divide(BigDecimal op1, int op2, int precision)
  7. divide(BigDecimal v1, BigDecimal v2)
  8. divide(final BigDecimal amount, final BigDecimal divideBy, final int scale)
  9. divide(long res, BigDecimal value)