Here you can find the source of doubleToFloatArray(double[] dArray)
public static float[] doubleToFloatArray(double[] dArray)
//package com.java2s; //License from project: CeCILL license public class Main { public static float[] doubleToFloatArray(double[] dArray) { float[] fArray = new float[dArray.length]; for (int i = 0; i < dArray.length; i++) { fArray[i] = (float) dArray[i]; }/* w ww .ja v a 2 s .c o m*/ return fArray; } }