Java BigDecimal from doubleArrayToBigDecimalList( double[] array)

Here you can find the source of doubleArrayToBigDecimalList( double[] array)

Description

double Array To Big Decimal List

License

Apache License

Declaration

public static List<BigDecimal> doubleArrayToBigDecimalList(
            double[] array) 

Method Source Code

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

import java.math.BigDecimal;

import java.util.ArrayList;

import java.util.List;

public class Main {
    public static List<BigDecimal> doubleArrayToBigDecimalList(
            double[] array) {
        List<BigDecimal> list = new ArrayList<BigDecimal>();
        for (double item : array) {
            list.add(new BigDecimal(item));
        }//from w ww .ja va 2  s.com
        return list;
    }
}

Related

  1. byteToBigDecimal(byte[] raw)
  2. byteToBigDecimal(byte[] raw)
  3. castBigDecimal(Object o)
  4. castToBigDecimal(Object value)
  5. convertNumberToBigDecimal(Number aNumber)
  6. doubleToBigDecimal(double amountAsDouble)
  7. doubleToBigDecimal(double dd)
  8. longToBigDecimal(long amountAsSatoshis)
  9. numberToBigDecimal(Number number)