Java BigDecimal Divide divide(Vector v, BigDecimal magnitude)

Here you can find the source of divide(Vector v, BigDecimal magnitude)

Description

divide

License

Open Source License

Declaration

public static Vector<BigDecimal> divide(Vector<BigDecimal> v, BigDecimal magnitude) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

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

import java.util.Vector;

public class Main {
    public static Vector<BigDecimal> divide(Vector<BigDecimal> v, BigDecimal magnitude) {

        Vector<BigDecimal> c = (Vector<BigDecimal>) v.clone();

        for (int i = 0; i < c.size(); i++) {
            c.set(i, c.elementAt(i).divide(magnitude, MathContext.DECIMAL128));
        }/*from w w  w  .  ja v a 2  s  .c o m*/

        return c;
    }
}

Related

  1. divide(BigDecimal one, BigDecimal another)
  2. divide(BigDecimal op1, int op2, int precision)
  3. divide(BigDecimal v1, BigDecimal v2)
  4. divide(final BigDecimal amount, final BigDecimal divideBy, final int scale)
  5. divide(long res, BigDecimal value)
  6. divideBigDecimalsInMap(Map baseMap, BigDecimal divisor)
  7. divideBy(BigDecimal dividend, BigDecimal divisor)
  8. divideByTwo(BigDecimal number)
  9. divideMoeda(BigDecimal val1, BigDecimal val2)