Java Float Array to Int ArrayFloat2Int(float[] a)

Here you can find the source of ArrayFloat2Int(float[] a)

Description

Array Float Int

License

Open Source License

Declaration

public static int[] ArrayFloat2Int(float[] a) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int[] ArrayFloat2Int(float[] a) {
        int[] ret = new int[a.length];
        for (int i = 0; i < a.length; i++) {
            ret[i] = (int) a[i];
        }//from  w  w w . j a  va  2  s.  c o m

        return ret;
    }
}

Related

  1. floatArray2String(float[] array)
  2. floatArray2String(float[] xs)
  3. floatArrayTo16bitPCM(float[] raw)