List of utility methods to do Double Array to Float Array
float[] | doublesToFloat(double[] array) doubles To Float float[] inFloatForm = new float[array.length]; for (int i = 0; i < array.length; i++) { inFloatForm[i] = (float) array[i]; return inFloatForm; |
float[] | doublesToFloats(final double[] array) convert an array of double values to an array of float . final float[] res; int i; res = new float[array.length]; i = 0; for (final double x : array) { res[i++] = ((float) x); return res; ... |