Java Integer to int2double(int[] ia)

Here you can find the source of int2double(int[] ia)

Description

Converts a vector of ints to doubles.

License

Open Source License

Parameter

Parameter Description
ia - the input vector of integers.

Return

- the output vector of doubles.

Declaration


public static double[] int2double(int[] ia) 

Method Source Code

//package com.java2s;

public class Main {
    /**//from w  ww.  j a va2  s. c  o m
     * Converts a vector of ints to doubles.
     * @param ia - the input vector of integers.
     * @return - the output vector of doubles.
     */

    public static double[] int2double(int[] ia) {
        double[] out = new double[ia.length];
        for (int i = 0; i < ia.length; i++) {
            out[i] = ia[i];
        }
        return out;
    }
}

Related

  1. int2BigEndianStr(int i)
  2. int2buff(int n)
  3. int2Char(int i)
  4. int2Date(Integer date, String interval)
  5. int2ddouble(final int i)
  6. int2EyptStr(int num)
  7. int2float(Integer integer)
  8. int2Integer(int[] array)
  9. int2minBeb(final int x)