Here you can find the source of floatToDouble(float[] array)
Parameter | Description |
---|---|
array | array of floats to convert |
public static double[] floatToDouble(float[] array)
//package com.java2s; public class Main { /**//from w w w. j a v a 2s. c om * Convert a float array to a double array. * @param array array of floats to convert * @return array of doubles */ public static double[] floatToDouble(float[] array) { double[] darr = new double[array.length]; for (int i = 0; i < array.length; i++) { darr[i] = array[i]; } return darr; } }