Java BigDecimal from toBigDecimal(Vector doubleVector)

Here you can find the source of toBigDecimal(Vector doubleVector)

Description

to Big Decimal

License

Open Source License

Declaration

public static Vector<BigDecimal> toBigDecimal(Vector<Double> doubleVector) 

Method Source Code


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

import java.math.BigDecimal;

import java.util.Vector;

public class Main {
    public static Vector<BigDecimal> toBigDecimal(Vector<Double> doubleVector) {
        Vector<BigDecimal> bigDecimalVector = null;
        if (doubleVector != null) {
            bigDecimalVector = new Vector<BigDecimal>();
            for (Double d : doubleVector) {
                bigDecimalVector.add(new BigDecimal(d));
            }//from  w  w w  .j av  a2 s. c  o  m
        }
        return bigDecimalVector;
    }
}

Related

  1. toBigDecimal(String value)
  2. toBigDecimal(String value)
  3. toBigDecimal(String value)
  4. toBigDecimal(String value)
  5. toBigDecimal(T value)
  6. toBigDecimalArray(int[] ints)
  7. toBigDecimalList(double... list)
  8. toBigDecimalList(List list)
  9. toBigInteger(@Nullable final BigDecimal value)