Java Double to doubleToFloatArray(double[] dArray)

Here you can find the source of doubleToFloatArray(double[] dArray)

Description

double To Float Array

License

CeCILL license

Declaration

public static float[] doubleToFloatArray(double[] dArray) 

Method Source Code

//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;
    }
}

Related

  1. doubleToBinaryString(double value)
  2. doubleToBits(double in, double min, double max, int numBits, int splits)
  3. doubleToBits(double num)
  4. doubleToChar(double d, char defaultValue)
  5. doubleToDoubleArray(double... a)
  6. doubleToFloatArray(double[] doubles)
  7. doubleToFloatMatrix(double[][] matrix)
  8. doubleToFractionStr(final Double d)
  9. doubleToHashString(double value)