Java Long to Double longToDouble(long[] array)

Here you can find the source of longToDouble(long[] array)

Description

Convert a long array to a double array.

License

Open Source License

Parameter

Parameter Description
array array of floats to convert

Return

array of doubles

Declaration

public static double[] longToDouble(long[] array) 

Method Source Code

//package com.java2s;

public class Main {
    /**/* w ww.  j a v a2s. c o  m*/
     * Convert a long array to a double array.
     * @param array array of floats to convert
     * @return array of doubles
     */
    public static double[] longToDouble(long[] array) {
        double[] darr = new double[array.length];

        for (int i = 0; i < array.length; i++) {
            darr[i] = array[i];
        }
        return darr;
    }
}

Related

  1. longToDouble(final long value)
  2. longToDouble(long d)
  3. longToDouble(long[] values)